Online Maps v3
Loading...
Searching...
No Matches
OnlineMapsOpenRouteService Class Reference

This class is used to search for a route by coordinates using Open Route Service.
You can create a new instance using OnlineMapsOpenRouteService.Find.
http://wiki.openstreetmap.org/wiki/OpenRouteService. More...

Inheritance diagram for OnlineMapsOpenRouteService:
OnlineMapsTextWebService OnlineMapsWebServiceAPI

Classes

class  DirectionParams
 Parameters of the directions request. More...
 
class  GeocodingParams
 Parameters of the geocoding request. More...
 
class  Params
 Base class of parameters of the request to Open Route Service. More...
 

Public Types

enum  OnlineMapsOpenRouteServicePref
 The preference of the routing.
 

Static Public Member Functions

static OnlineMapsOpenRouteService Directions (DirectionParams p)
 Returns a route between two or more locations for a selected profile and its settings as GeoJSON response.
 
static OnlineMapsOpenRouteService Geocoding (GeocodingParams p)
 Resolve input coordinates to addresses and vice versa.
 
static OnlineMapsOpenRouteServiceDirectionResult GetDirectionResults (string response)
 Converts the response string from Open Route Service Directions to result object.
 
static OnlineMapsOpenRouteServiceGeocodingResult GetGeocodingResults (string response)
 Converts the response string from Open Route Service Geocoding to result object.
 

Additional Inherited Members

- Public Member Functions inherited from OnlineMapsWebServiceAPI
void Destroy ()
 Destroys the current request to webservice.
 
OnlineMapsWWW GetWWW ()
 Get request instance.
 
- Public Attributes inherited from OnlineMapsTextWebService
Action< string > OnComplete
 Event that occurs when a response is received from webservice.
 
new Action< OnlineMapsTextWebServiceOnFailed
 Event that occurs when an error response is received from webservice.
 
new Action< OnlineMapsTextWebServiceOnFinish
 This event is occurs after other events, before disposing the request.
 
new Action< OnlineMapsTextWebServiceOnSuccess
 Event that occurs when a success response is received from webservice.
 
- Public Attributes inherited from OnlineMapsWebServiceAPI
Action< OnlineMapsWebServiceAPIOnFailed
 Event that occurs when an error response is received from webservice.
 
Action< OnlineMapsWebServiceAPIOnFinish
 Event that occurs after OnComplete, when the response from webservice processed.
 
Action< OnlineMapsWebServiceAPIOnDispose
 Event that occurs when the current request instance is disposed.
 
Action< OnlineMapsWebServiceAPIOnSuccess
 Event that occurs when a success response is received from webservice.
 
object customData
 In this variable you can put any data that you need to work with requests.
 
- Protected Member Functions inherited from OnlineMapsTextWebService
void OnRequestComplete (OnlineMapsWWW www)
 Checks whether the response from webservice.
 
- Protected Attributes inherited from OnlineMapsTextWebService
string _response
 Response string.
 
- Properties inherited from OnlineMapsTextWebService
string response [get]
 Gets a response from webservice.
 
- Properties inherited from OnlineMapsWebServiceAPI
OnlineMapsQueryStatus status [get]
 Gets the current status of the request to webservice.
 

Detailed Description

This class is used to search for a route by coordinates using Open Route Service.
You can create a new instance using OnlineMapsOpenRouteService.Find.
http://wiki.openstreetmap.org/wiki/OpenRouteService.

Member Function Documentation

◆ Directions()

static OnlineMapsOpenRouteService OnlineMapsOpenRouteService.Directions ( DirectionParams p)
static

Returns a route between two or more locations for a selected profile and its settings as GeoJSON response.

Parameters
pParameters of request
Returns
Instance of the query

◆ Geocoding()

static OnlineMapsOpenRouteService OnlineMapsOpenRouteService.Geocoding ( GeocodingParams p)
static

Resolve input coordinates to addresses and vice versa.

Parameters
pParameters of the request
Returns
Instance of the query

◆ GetDirectionResults()

static OnlineMapsOpenRouteServiceDirectionResult OnlineMapsOpenRouteService.GetDirectionResults ( string response)
static

Converts the response string from Open Route Service Directions to result object.

Parameters
responseResponse string
Returns
Result object

◆ GetGeocodingResults()

static OnlineMapsOpenRouteServiceGeocodingResult OnlineMapsOpenRouteService.GetGeocodingResults ( string response)
static

Converts the response string from Open Route Service Geocoding to result object.

Parameters
responseResponse string
Returns
Result object