Example #1
0
        /// <summary>
        /// Creates a new router point.
        /// </summary>
        public static RouterPoint CreateRouterPoint(this RouterDb routerDb, uint edgeId, ushort offset)
        {
            var location = routerDb.LocationOnNetwork(edgeId, offset);

            return(new RouterPoint(location.Latitude, location.Longitude, edgeId, offset));
        }
Example #2
0
 /// <summary>
 /// Returns the location on the network.
 /// </summary>
 public static Coordinate LocationOnNetwork(this RouterPoint point, RouterDb db)
 {
     return(db.LocationOnNetwork(point.EdgeId, point.Offset));
 }