This class is used to search for a location by address using Bing Maps Location API.
https://msdn.microsoft.com/en-us/library/ff701715.aspx.
More...
|
|
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 for a location by address using Bing Maps Location API.
https://msdn.microsoft.com/en-us/library/ff701715.aspx.
◆ FindByPoint()
| static OnlineMapsBingMapsLocation OnlineMapsBingMapsLocation.FindByPoint |
( |
Vector2 | point, |
|
|
string | key, |
|
|
bool | includeNeighborhood = false ) |
|
static |
Get the location information associated with latitude and longitude coordinates (reverse geocoding).
- Parameters
-
| point | The coordinates of the location that you want to reverse geocode (X - Longitude, Y - Latitude). |
| key | Bing Maps API Key. |
| includeNeighborhood | Specifies to include the neighborhood in the response when it is available. |
- Returns
- Instance of query
◆ FindByQuery()
| static OnlineMapsBingMapsLocation OnlineMapsBingMapsLocation.FindByQuery |
( |
string | query, |
|
|
string | key, |
|
|
int | maxResults = 5, |
|
|
bool | includeNeighborhood = false ) |
|
static |
Get latitude and longitude coordinates that correspond to location information provided as a query string.
- Parameters
-
| query | A string that contains information about a location, such as an address or landmark name. |
| key | Bing Maps API Key |
| maxResults | Specifies the maximum number (1-20) of locations to return in the response. |
| includeNeighborhood | Specifies to include the neighborhood with the address information the response when it is available. |
- Returns
- Instance of query
◆ GetResults()
Converts response into an array of results.
- Parameters
-
| response | Response of query. |
- Returns
- Array of result.