{ "id": "152539", "key": "TIMOB-20039", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-12-04T06:40:47.000+0000", "created": "2015-10-30T22:12:18.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "Community" ], "versions": [ { "id": "16904", "description": "Release 5.0.2", "name": "Release 5.0.2", "archived": true, "released": true, "releaseDate": "2015-10-01" } ], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2017-03-22T21:44:59.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "The longitude and latitude values are reported in reverse order when executing the forwardGeocoder method on Android. To reproduce, copy the following code into the app.js file of a new project and run on IOS and Android emulators.\r\n\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\ttop:'20dp',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\ttop:'60dp',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label2);\r\n\r\nTitanium.Geolocation.forwardGeocoder(\"KANSAS CITY, MISSOURI\", function(g){\r\n\tif (g.success == true){\r\n\t\tTi.API.info(JSON.stringify(g));\r\n\t\tlabel1.setText('Longitude: '+g.longitude);\r\n\t\tlabel2.setText('Latitude : '+g.latitude);\r\n\t} else {\r\n\t\talert(\"Invalid stop information specified. Please check the value entered.\");\r\n\t}\r\n});\r\n\r\nwin1.open();\r\n{code}\r\nThe results will be the longitude will be displayed in the top label, and the latitude in the bottom label on IOS, but reversed when run on Android.\r\n", "attachment": [ { "id": "57223", "filename": "Screen Shot 2015-11-02 at 11.07.16 AM.png", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2015-11-02T05:12:23.000+0000", "size": 22643, "mimeType": "image/png" }, { "id": "57222", "filename": "Simulator Screen Shot Nov 2, 2015, 10.59.24 AM.png", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2015-11-02T05:12:24.000+0000", "size": 32669, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: forwardGeocoder Longitude & Latitude values reverse", "creator": { "name": "jechilds", "key": "jechilds", "displayName": "James Childs", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "jechilds", "key": "jechilds", "displayName": "James Childs", "active": true, "timeZone": "America/Havana" }, "environment": "Appcelerator Studio, build: 4.3.0.201509151348\r\nTitanium SDK 5.0\r\nMac OS X Yosemite version 10.10.5", "closedSprints": [ { "id": 536, "state": "closed", "name": "2015 Sprint 25 SDK", "startDate": "2015-12-05T01:30:40.415Z", "endDate": "2015-12-19T01:30:00.000Z", "completeDate": "2015-12-29T03:19:42.127Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "372141", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Tested this on 5.0.0.GA, 5.1.0.GA and 5.1.1.GA on Android. Facing no issues right now. ", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-12-04T06:39:44.000+0000", "updated": "2015-12-04T06:39:44.000+0000" }, { "id": "372142", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Resolving as invalid as it seems to be working correctly.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-12-04T06:41:06.000+0000", "updated": "2015-12-04T06:41:16.000+0000" }, { "id": "415032", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:44:59.000+0000", "updated": "2017-03-22T21:44:59.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }