/// <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)); }
/// <summary> /// Returns the location on the network. /// </summary> public static Coordinate LocationOnNetwork(this RouterPoint point, RouterDb db) { return(db.LocationOnNetwork(point.EdgeId, point.Offset)); }