/// <summary> /// Encodes the edge that the given location resolves on. /// </summary> public static string EncodeClosestEdge(this Coder coder, Itinero.LocalGeo.Coordinate location, float searchDistanceInMeter = 50) { return(coder.Encode(coder.BuildEdge( coder.Router.Resolve(coder.Profile.Profile, location, searchDistanceInMeter).EdgeIdDirected()))); }
/// <summary> /// Encodes the edge that the given location resolves on. /// </summary> public static string EncodeClosestEdge(this Coder coder, Itinero.LocalGeo.Coordinate location) { return(coder.Encode(coder.BuildEdge( coder.Router.Resolve(coder.Profile.Profile, location).EdgeIdDirected()))); }