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

This class is used to request to Open Street Map Overpass API.
You can create a new instance using OnlineMapsOSMAPIQuery.Find.
Open Street Map Overpass API documentation: http://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide
You can test your queries using: http://overpass-turbo.eu/. More...

Inheritance diagram for OnlineMapsOSMAPIQuery:
OnlineMapsTextWebService OnlineMapsWebServiceAPI

Classes

class  OSMXMLNode
 Fast XML parser optimized for OSM response.
It has very limited support for XML and is not recommended for parsing any data except OSM response. More...
 

Static Public Member Functions

static OnlineMapsOSMAPIQuery Find (string data)
 Query the Open Street Map Overpass API.
 
static void ParseOSMResponse (string response, out List< OnlineMapsOSMNode > nodes, out List< OnlineMapsOSMWay > ways, out List< OnlineMapsOSMRelation > relations)
 Get data from the response Open Street Map Overpass API.
 
static void ParseOSMResponse (string response, out List< OnlineMapsOSMNode > nodes, out List< OnlineMapsOSMWay > ways, out List< OnlineMapsOSMRelation > relations, out List< OnlineMapsOSMArea > areas)
 Get data from the response Open Street Map Overpass API.
 
static void ParseOSMResponse (string response, out Dictionary< string, OnlineMapsOSMNode > nodes, out List< OnlineMapsOSMWay > ways, out List< OnlineMapsOSMRelation > relations)
 Get data from the response Open Street Map Overpass API.
 
static void ParseOSMResponse (string response, out Dictionary< string, OnlineMapsOSMNode > nodes, out List< OnlineMapsOSMWay > ways, out List< OnlineMapsOSMRelation > relations, out List< OnlineMapsOSMArea > areas)
 Get data from the response Open Street Map Overpass API.
 
static void ParseOSMResponseFast (string response, out Dictionary< string, OnlineMapsOSMNode > nodes, out Dictionary< string, OnlineMapsOSMWay > ways, out List< OnlineMapsOSMRelation > relations)
 Fast way to get data from the response Open Street Map Overpass API.
 

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 request to Open Street Map Overpass API.
You can create a new instance using OnlineMapsOSMAPIQuery.Find.
Open Street Map Overpass API documentation: http://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide
You can test your queries using: http://overpass-turbo.eu/.

Member Function Documentation

◆ Find()

static OnlineMapsOSMAPIQuery OnlineMapsOSMAPIQuery.Find ( string data)
static

Query the Open Street Map Overpass API.

Parameters
dataOverpass QL request
Returns
Instance of the query

◆ ParseOSMResponse() [1/4]

static void OnlineMapsOSMAPIQuery.ParseOSMResponse ( string response,
out Dictionary< string, OnlineMapsOSMNode > nodes,
out List< OnlineMapsOSMWay > ways,
out List< OnlineMapsOSMRelation > relations )
static

Get data from the response Open Street Map Overpass API.

Parameters
responseResponse from Overpass API
nodesDictionary of nodes
waysList of ways
relationsList of relations

◆ ParseOSMResponse() [2/4]

static void OnlineMapsOSMAPIQuery.ParseOSMResponse ( string response,
out Dictionary< string, OnlineMapsOSMNode > nodes,
out List< OnlineMapsOSMWay > ways,
out List< OnlineMapsOSMRelation > relations,
out List< OnlineMapsOSMArea > areas )
static

Get data from the response Open Street Map Overpass API.

Parameters
responseResponse from Overpass API
nodesDictionary of nodes
waysList of ways
relationsList of relations
areasList of areas

◆ ParseOSMResponse() [3/4]

static void OnlineMapsOSMAPIQuery.ParseOSMResponse ( string response,
out List< OnlineMapsOSMNode > nodes,
out List< OnlineMapsOSMWay > ways,
out List< OnlineMapsOSMRelation > relations )
static

Get data from the response Open Street Map Overpass API.

Parameters
responseResponse from Overpass API
nodesList of nodes
waysList of ways
relationsList of relations

◆ ParseOSMResponse() [4/4]

static void OnlineMapsOSMAPIQuery.ParseOSMResponse ( string response,
out List< OnlineMapsOSMNode > nodes,
out List< OnlineMapsOSMWay > ways,
out List< OnlineMapsOSMRelation > relations,
out List< OnlineMapsOSMArea > areas )
static

Get data from the response Open Street Map Overpass API.

Parameters
responseResponse from Overpass API
nodesList of nodes
waysList of ways
relationsList of relations
areasList of areas

◆ ParseOSMResponseFast()

static void OnlineMapsOSMAPIQuery.ParseOSMResponseFast ( string response,
out Dictionary< string, OnlineMapsOSMNode > nodes,
out Dictionary< string, OnlineMapsOSMWay > ways,
out List< OnlineMapsOSMRelation > relations )
static

Fast way to get data from the response Open Street Map Overpass API.

Parameters
responseResponse from Overpass API
nodesDictionary of nodes
waysList of ways
relationsList of relations