[TIMOB-18719] Windows: Implement Ti.Geolocation geocoding methods
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-04-14T13:56:33.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Gary Mathews |
Created | 2015-03-20T13:42:43.000+0000 |
Updated | 2017-03-14T20:12:16.000+0000 |
Description
Note that each method returns a specialized Object as argument to the callback function. We'll need to wrap it in a struct as we do for Font/Point/Dimension. Additionally, the reverseGeocoder response object has a specialized property value that should also be a struct.
Methods
- forwardGeocoder http://docs.appcelerator.com/titanium/3.0/#!/api/ForwardGeocodeResponse - reverseGeocoder http://docs.appcelerator.com/titanium/3.0/#!/api/ReverseGeocodeResponse http://docs.appcelerator.com/titanium/3.0/#!/api/GeocodedAddress
forwardGeocoder( address, callback ) : void
Resolves an address to a location.
Parameters
address : String (optional)
address to resolve.
callback : Callback<ForwardGeocodeResponse> (optional)
Function to invoke on success or failure.
Returns void
-----------
reverseGeocoder( latitude, longitude, callback ) : void
Tries to resolve a location to an address.
The callback receives a ReverseGeocodeResponse object. If the request is successful, the object includes one or more addresses that are possible matches for the requested coordinates.
Parameters
latitude : Number (optional)
Latitude to search, specified in decimal degrees.
longitude : Number (optional)
Longitude to search, specified in decimal degrees.
callback : Callback<ReverseGeocodeResponse> (optional)
Function to invoke on success or failure.
Returns void
Closing ticket as fixed.