Beispiel #1
0
 /// <summary>
 /// Resolves a location but also checks if it's connected to the rest of the network.
 /// </summary>
 public static RouterPoint ResolveConnected(this RouterBase router, IProfileInstance profileInstance, float latitude, float longitude, float radiusInMeter = 1000,
                                            float maxSearchDistance = Constants.SearchDistanceInMeter)
 {
     return(router.TryResolveConnected(profileInstance, latitude, longitude, radiusInMeter, maxSearchDistance).Value);
 }
Beispiel #2
0
 /// <summary>
 /// Resolves a location but also checks if it's connected to the rest of the network.
 /// </summary>
 public static Result <RouterPoint> TryResolveConnected(this RouterBase router, IProfileInstance profileInstance, Coordinate location,
                                                        float radiusInMeter = 2000, float maxSearchDistance = Constants.SearchDistanceInMeter, bool?forward = null)
 {
     return(router.TryResolveConnected(profileInstance, location.Latitude, location.Longitude, radiusInMeter, maxSearchDistance,
                                       forward));
 }