[TIMOB-13032] iOS: Titanium.Geolocation.forwardGeocoder API provides different latitude/longitude value for different regional format setting
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-05-13T21:25:31.000+0000 |
Affected Version/s | Release 2.1.4, Release 3.0.0, Release 3.0.2 |
Fix Version/s | 2013 Sprint 10 API, 2013 Sprint 10 |
Components | iOS |
Labels | ipass1, supportTeam |
Reporter | Rupesh Sharma |
Assignee | Sabil Rahim |
Created | 2013-03-12T10:27:30.000+0000 |
Updated | 2017-03-28T20:34:30.000+0000 |
Description
Titanium.Geolocation.forwardGeocoder API results in different latitude/longitude value for different region format.
Steps to Reproduce :
1. Use Titanium.Geolocation.forwardGeocoder API to search for "Sydney" and run it with "United States" as region format and record the result.
2. Now change the region format to "Australia" to do this goto Settings->General->International->Region Format and select Australia and run it and record the result.
3. Compare both the results.
Please use the code below to reproduce the same:
var win1 = Titanium.UI.createWindow({
title:'Sample',
backgroundColor:'#fff'
});
var button = Titanium.UI.createButton({
title: 'CLICK ME',
top: 10,
width: 100,
height: 50
});
button.addEventListener('click',function(e)
{
Ti.Geolocation.forwardGeocoder("Sydney",function(data){
Titanium.API.info(JSON.stringify(data));
});
});
win1.add(button);
win1.open();
"Note to Self" http://support-admin.appcelerator.com/display/APP-742911