Initializes the synchronous route calculation request.
A GeoRouteResult objects representing the result of the route calculation.
A call to this method blocks the calling thread until the route calculation request completes. It either returns a valid GeoRouteResult object or throws a ServiceRequestException describing an error that occurred during the request processing.
Calling this method from the main thread is not recommended. Mind that the request makes a HTTP connection to the location service provider and downloads the result from Internet. Consider using the asynchronous method GetRouteAsync to do this job on a background thread.
| Exception Type | Condition |
|---|---|
| ServiceRequestException | GeoRoute request failed |
| NotSupportedException | A service provider specified by ServiceProvider property does not support this kind of service. |
GeoRoute Class | Resco.Location.Services.GeoRoute Namespace | GeoRoute.GetRoute Overload List