Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13032] iOS: Titanium.Geolocation.forwardGeocoder API provides different latitude/longitude value for different regional format setting

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2013-05-13T21:25:31.000+0000
Affected Version/sRelease 2.1.4, Release 3.0.0, Release 3.0.2
Fix Version/s2013 Sprint 10 API, 2013 Sprint 10
ComponentsiOS
Labelsipass1, supportTeam
ReporterRupesh Sharma
AssigneeSabil Rahim
Created2013-03-12T10:27:30.000+0000
Updated2017-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();

Comments

  1. Rupesh Sharma 2013-03-14

    "Note to Self" http://support-admin.appcelerator.com/display/APP-742911

JSON Source