Пример #1
0
 /// <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())));
 }
Пример #2
0
 /// <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())));
 }