{ "id": "152374", "key": "TIMOB-19875", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-11-19T09:32:06.000+0000", "created": "2015-10-27T13:11:22.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "supportTeam" ], "versions": [ { "id": "16904", "description": "Release 5.0.2", "name": "Release 5.0.2", "archived": true, "released": true, "releaseDate": "2015-10-01" } ], "issuelinks": [], "assignee": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2015-11-19T09:32:06.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": "Recently I tried to solve issue in Q&A forum but I got same result as he got.\r\n\r\nSo the problem is Ti.Geolocation.reverseGeocoder gives latitude & longitude in reverse order.\r\n\r\nExample : \r\nTi.Geolocation.accuracy = Ti.Geolocation.ACCURACY_HIGH;\r\n\r\nTi.Geolocation.getCurrentPosition(showAddress);\r\n\r\nfunction showAddress(e) {\r\n Ti.API.info(\"Latitude == \" + e.coords.latitude);\r\n Ti.API.info(\"Longitude == \" + e.coords.longitude);\r\n \r\n Ti.Geolocation.reverseGeocoder(e.coords.latitude , e.coords.longitude, function (data){\r\n Ti.API.info(\"\\nReverse Geocode address == \" + JSON.stringify(data.places[0]));\r\n Ti.API.info(\"\\nReverse Geocode Lat == \" + data.places[0].latitude);\r\n Ti.API.info(\"Reverse Geocode Long == \" + data.places[0].longitude);\r\n }); \r\n}\r\n\r\nOUTPUT : \r\nLatitude == 11.12345\r\nLongitude == 55.12345\r\n\r\nReverse Geocode address == {\"street\":\"xxxx\",\"city\":\"xxxx\",\"address\":\"xxxxxxxx\",\"state\":\"xxxxxx\",\"country_code\":\"xxxx\",\"country\":\"xxxx\",\"longitude\":11.12345,\"latitude\":55.12345,\"zipcode\":\"xxxx\"}\r\n\r\nReverse Geocode Lat == 55.12345\r\nReverse Geocode Long == 11.12345\r\n\r\nReference Link :\r\n\r\nhttps://community.appcelerator.com/topic/3858/could-anyone-try-the-below-code-get-back-to-me-whether-it-is-really-a-bug-or-i-am-doing-something-wrong", "attachment": [], "flagged": false, "summary": "Ti.Geolocation.reverseGeocoder gives twisted value of latitude,longitude.", "creator": { "name": "mitulbhalia", "key": "mitulbhalia", "displayName": "Mitul Bhalia", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "mitulbhalia", "key": "mitulbhalia", "displayName": "Mitul Bhalia", "active": true, "timeZone": "Asia/Kolkata" }, "environment": null, "comment": { "comments": [ { "id": "369672", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-11-11T05:03:47.000+0000", "updated": "2015-11-11T05:03:47.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }