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...
|
| 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).
|
| |
| static OnlineMapsTextWebService | Reverse (Vector2 location, string acceptlanguage="en", bool addressdetails=true) |
| | Reverse geocoding generates an address from a latitude and longitude.
|
| |
| static OnlineMapsOSMNominatimResult[] | GetResults (string response) |
| | Converts response into an array of results.
|
| |
|
|
void | Destroy () |
| | Destroys the current request to webservice.
|
| |
| OnlineMapsWWW | GetWWW () |
| | Get request instance.
|
| |
|
Action< string > | OnComplete |
| | Event that occurs when a response is received from webservice.
|
| |
|
new Action< OnlineMapsTextWebService > | OnFailed |
| | Event that occurs when an error response is received from webservice.
|
| |
|
new Action< OnlineMapsTextWebService > | OnFinish |
| | This event is occurs after other events, before disposing the request.
|
| |
|
new Action< OnlineMapsTextWebService > | OnSuccess |
| | Event that occurs when a success response is received from webservice.
|
| |
|
Action< OnlineMapsWebServiceAPI > | OnFailed |
| | Event that occurs when an error response is received from webservice.
|
| |
|
Action< OnlineMapsWebServiceAPI > | OnFinish |
| | Event that occurs after OnComplete, when the response from webservice processed.
|
| |
|
Action< OnlineMapsWebServiceAPI > | OnDispose |
| | Event that occurs when the current request instance is disposed.
|
| |
|
Action< OnlineMapsWebServiceAPI > | OnSuccess |
| | 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.
|
| |
|
void | OnRequestComplete (OnlineMapsWWW www) |
| | Checks whether the response from webservice.
|
| |
|
string | _response |
| | Response string.
|
| |
| string | response [get] |
| | Gets a response from webservice.
|
| |
| OnlineMapsQueryStatus | status [get] |
| | Gets the current status of the request to webservice.
|
| |
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.
◆ GetResults()
Converts response into an array of results.
- Parameters
-
| response | Response 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
-
| location | The location to generate an address for. |
| acceptlanguage | Preferred 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. |
| addressdetails | Include 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
-
| query | Query string to search for. |
| acceptlanguage | Preferred 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. |
| limit | Limit the number of returned results. |
| addressdetails | Include a breakdown of the address into elements. |
- Returns
- Instance of query