Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18719] Windows: Implement Ti.Geolocation geocoding methods

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-04-14T13:56:33.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsn/a
ReporterChristopher Williams
AssigneeGary Mathews
Created2015-03-20T13:42:43.000+0000
Updated2017-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

Comments

  1. Lee Morris 2017-03-14

    Closing ticket as fixed.

JSON Source