Online Maps  v3
OnlineMapsOSMNominatim Class Reference

This class is used to search OSM data by name and address and to generate synthetic addresses of OSM points (reverse geocoding).
http://wiki.openstreetmap.org/wiki/Nominatim More...

Inheritance diagram for OnlineMapsOSMNominatim:
OnlineMapsTextWebService OnlineMapsWebServiceAPI

Static Public Member Functions

static OnlineMapsTextWebService Search (string query, string acceptlanguage="en", int limit=0, bool addressdetails=true)
 Nominatim indexes named (or numbered) features with the OSM data set and a subset of other unnamed features (pubs, hotels, churches, etc). More...
 
static OnlineMapsTextWebService Reverse (Vector2 location, string acceptlanguage="en", bool addressdetails=true)
 Reverse geocoding generates an address from a latitude and longitude. More...
 
static OnlineMapsOSMNominatimResult[] GetResults (string response)
 Converts response into an array of results. More...
 

Additional Inherited Members

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

Detailed Description

This class is used to search OSM data by name and address and to generate synthetic addresses of OSM points (reverse geocoding).
http://wiki.openstreetmap.org/wiki/Nominatim

Member Function Documentation

◆ GetResults()

static OnlineMapsOSMNominatimResult [] OnlineMapsOSMNominatim.GetResults ( string  response)
static

Converts response into an array of results.

Parameters
responseResponse of query.
Returns
Array of result.

◆ Reverse()

static OnlineMapsTextWebService OnlineMapsOSMNominatim.Reverse ( Vector2  location,
string  acceptlanguage = "en",
bool  addressdetails = true 
)
static

Reverse geocoding generates an address from a latitude and longitude.

Parameters
locationThe location to generate an address for.
acceptlanguagePreferred language order for showing search results, overrides the value specified in the "Accept-Language" HTTP header.
Either uses standard rfc2616 accept-language string or a simple comma separated list of language codes.
addressdetailsInclude a breakdown of the address into elements.
Returns
Instance of query

◆ Search()

static OnlineMapsTextWebService OnlineMapsOSMNominatim.Search ( string  query,
string  acceptlanguage = "en",
int  limit = 0,
bool  addressdetails = true 
)
static

Nominatim indexes named (or numbered) features with the OSM data set and a subset of other unnamed features (pubs, hotels, churches, etc).

Parameters
queryQuery string to search for.
acceptlanguagePreferred language order for showing search results, overrides the value specified in the "Accept-Language" HTTP header.
Either uses standard rfc2616 accept-language string or a simple comma separated list of language codes.
limitLimit the number of returned results.
addressdetailsInclude a breakdown of the address into elements.
Returns
Instance of query