Online Maps
v3
|
This class is used to search for a location by address.
https://developers.google.com/maps/documentation/geocoding/intro
More...
Classes | |
class | GeocodingParams |
Request parameters for Geocoding More... | |
class | RequestParams |
The base class containing the request parameters. More... | |
class | ReverseGeocodingParams |
Request parameters for Reverse Geocoding More... | |
Public Member Functions | |
OnlineMapsGoogleGeocoding (string address, string key=null) | |
Creates a new request for a location search by title (geocoding). More... | |
OnlineMapsGoogleGeocoding (Vector2 coords, string key=null) | |
Creates a new request for a location search by coordinates (reverse geocoding). More... | |
OnlineMapsGoogleGeocoding (double longitude, double latitude, string key=null) | |
Creates a new request for a location search by coordinates (reverse geocoding). More... | |
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... | |
Static Public Member Functions | |
static OnlineMapsGoogleGeocoding | Find (RequestParams p) |
Creates a new request for a location search using object with parameters. More... | |
static Vector2 | GetCoordinatesFromResult (string response) |
Gets the coordinates of the first results from OnlineMapsFindLocation result. More... | |
static OnlineMapsGoogleGeocodingResult[] | GetResults (string response) |
Converts response into an array of results. More... | |
static void | MovePositionToResult (string response) |
Centers the map on the result of the search location. More... | |
Protected Member Functions | |
OnlineMapsGoogleGeocoding (string address=null, string latlng=null, string lang=null) | |
Constructor. More... | |
Protected Member Functions inherited from OnlineMapsTextWebService | |
void | OnRequestComplete (OnlineMapsWWW www) |
Checks whether the response from webservice. More... | |
Additional Inherited Members | |
Public Attributes inherited from OnlineMapsTextWebService | |
Action< string > | OnComplete |
Event that occurs when a response is received from webservice. More... | |
new Action< OnlineMapsTextWebService > | OnFailed |
Event that occurs when an error response is received from webservice More... | |
new Action< OnlineMapsTextWebService > | OnFinish |
This event is occurs after other events, before disposing the request More... | |
new Action< OnlineMapsTextWebService > | OnSuccess |
Event that occurs when a success response is received from webservice More... | |
Public Attributes inherited from OnlineMapsWebServiceAPI | |
Action< OnlineMapsWebServiceAPI > | OnFailed |
Event that occurs when an error response is received from webservice. More... | |
Action< OnlineMapsWebServiceAPI > | OnFinish |
Event that occurs after OnComplete, when the response from webservice processed. More... | |
Action< OnlineMapsWebServiceAPI > | OnDispose |
Event that occurs when the current request instance is disposed. More... | |
Action< OnlineMapsWebServiceAPI > | OnSuccess |
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 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... | |
This class is used to search for a location by address.
https://developers.google.com/maps/documentation/geocoding/intro
OnlineMapsGoogleGeocoding.OnlineMapsGoogleGeocoding | ( | string | address, |
string | key = null |
||
) |
Creates a new request for a location search by title (geocoding).
address | Location title |
key | Google API key |
OnlineMapsGoogleGeocoding.OnlineMapsGoogleGeocoding | ( | Vector2 | coords, |
string | key = null |
||
) |
Creates a new request for a location search by coordinates (reverse geocoding).
coords | Location coordinates (X - longitude, Y - latitude) |
key | Google API key |
OnlineMapsGoogleGeocoding.OnlineMapsGoogleGeocoding | ( | double | longitude, |
double | latitude, | ||
string | key = null |
||
) |
Creates a new request for a location search by coordinates (reverse geocoding).
longitude | Longitude |
latitude | Latitude |
key | Google API key |
|
protected |
Constructor.
address | Location title |
latlng | Location coordinates (latitude,longitude). Example: 40.714224,-73.961452. |
lang | Language of result |
|
static |
Creates a new request for a location search using object with parameters.
p | Parameters of request |
|
static |
Gets the coordinates of the first results from OnlineMapsFindLocation result.
response | XML string. The result of the search location. |
|
static |
Converts response into an array of results.
response | Response of Google API. |
|
static |
Centers the map on the result of the search location.
response | XML string. The result of the search location. |