[TIMOB-772] reverseGeocoder needs to have definable endpoint ie: not api.appcelerator.net
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-07-28T16:55:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Backlog |
Components | iOS |
Labels | gps, ios, location, maps, reversegeocoder |
Reporter | kosso |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:36:05.000+0000 |
Updated | 2011-07-28T16:55:19.000+0000 |
Description
Hi,
I noticed frequent crashing today in my apps while they used reverseGeocoder and it took me a while to realise what the issue was: the 'Appclerator cloud' is down.
After inspecting GeolocationModule.m I see that it uses http://api.appcelerator.net/p/v1/geo">http://api.appcelerator.net/p/v1/geo as its endpoint to get data. Since the site was down and the app has no way of dealing with outage such as this, I wonder if it's possible for a developer to override this and use another, such as Google's service (which would make sense, given that the Maps use them too)
http://code.google.com/apis/maps/documentation/geocoding/index.html#ReverseGeocoding"> http://code.google.com/apis/maps/documentation/geocoding/index.html...
eg: To get the place details from latlng we could use:
json : http://maps.google.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=false">
http://maps.google.com/maps/api/geocode/json?latlng=40.714224,-73.9...
xml : http://maps.google.com/maps/api/geocode/xml?latlng=40.714224,-73.961452&sensor=false">
http://maps.google.com/maps/api/geocode/xml?latlng=40.714224,-73.96...
(Note 'sensor' must be set to either true or false)
The Google Geocoding API no longer needs a Maps API key, so this should be easy to implement surely? (Or does the terms and conditions 'require' that this data is always used in conjuction with a map display?
This is still an issue for any services which use the Appcelerator servers, including analytics.
Bug Scrub: Valid. No test case exists