{ "id": "160964", "key": "TIMOB-23534", "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": null, "resolutiondate": null, "created": "2016-06-10T01:02:34.000+0000", "priority": null, "labels": [ "reversegeocoder" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:54:51.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "The address for that lat and long values is:\r\n701 N Vista Ridge Blvd\r\nCedar Park, TX 78613\r\n30.527807, -97.792323\r\n\r\n// try to get address\r\nTitanium.Geolocation.reverseGeocoder(30.527935, -97.792357, function(evt) {\r\n //here we will store address information\r\n \r\n if (evt.success) {\r\n var places = evt.places;\r\n alert(JSON.stringify(places));\r\n if (places && places.length) {\r\n street = places[0].street;\r\n cCityChannel = places[0].city;\r\n country = places[0].country_code;\r\n } else {\r\n \tcCityChannel = '';\r\n address = \"No address found\";\r\n }\r\n }\r\n});\r\n\r\nAlso with other positions i get different address. Using google api returns a correct value.\r\n", "attachment": [], "flagged": false, "summary": "ReverseGeocoder Not getting the real address", "creator": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "388000", "author": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "body": "With that lat and long position i´m getting this address:\r\n2401 Hollis Ln\r\nCedar Park, TX 78613\r\n30.526457, -97.792140", "updateAuthor": { "name": "macazaga", "key": "macazaga", "displayName": "Rodrigo Macazaga", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-06-10T01:05:40.000+0000", "updated": "2016-06-10T01:05:40.000+0000" }, { "id": "388139", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nI am able to reproduce this issue with given code and given step. For the lat long Google Map gives the following address.\r\n\r\n701 N Vista Ridge Blvd\r\nCedar Park, TX 78613\r\n30.527807, -97.792323\r\n\r\n[Screenshot|https://i.imgsafe.org/cfcb82eac7.png]\r\n\r\nBut following codes with {{Titanium.Geolocation.reverseGeocoder}} gives this address:\r\n\r\n2401 Hollis Lane\r\nCedar Park, TX 78613\r\n30.526457, -97.792140\r\n\r\n*Code:*\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\n\ttitle : 'Tab 1',\r\n\tbackgroundColor : '#fff'\r\n});\r\n\r\nwin1.open();\r\n\r\nwin1.addEventListener(\"open\", function(e) {\r\n\t// try to get address\r\n\tTitanium.Geolocation.reverseGeocoder(30.527935, -97.792357, function(evt) {\r\n\t\t//here we will store address information\r\n\r\n\t\tif (evt.success) {\r\n\t\t\tvar places = evt.places;\r\n\t\t\talert(JSON.stringify(places));\r\n\t\t\tTi.API.log(JSON.stringify(places)); // gives log here\r\n\t\t\t\r\n\t\t\tif (places && places.length) {\r\n\t\t\t\tstreet = places[0].street;\r\n\t\t\t\tcCityChannel = places[0].city;\r\n\t\t\t\tcountry = places[0].country_code;\r\n\t\t\t} else {\r\n\t\t\t\tcCityChannel = '';\r\n\t\t\t\taddress = \"No address found\";\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t});\r\n});\r\n{code}\r\n\r\n*Console Log:*\r\n{code}\r\n [{\"street1\":\"Hollis Lane\",\"postalCode\":\"TX 78613\",\"address\":\"Hollis Lane, Cedar Park, TX TX 78613, United States of America\",\"displayAddress\":\"Hollis Lane, Cedar Park, TX TX 78613, United States of America\",\"street\":\"Hollis Lane\",\"countryCode\":\"US\",\"region2\":\"\",\"longitude\":\"-97.7920892\",\"region1\":\"\",\"latitude\":\"30.5264373\",\"country_code\":\"US\",\"country\":\"United States of America\",\"city\":\"Cedar Park\"}]\r\n{code}\r\n\r\n*Environment*:\r\n\r\n*Device info:* Nexus7 (android 6.0.1)\r\n*Node.js Version:* 0.12.7\r\n*npm Version:* 2.11.3\r\n*Titanium SDKs:* 5.3.0.GA\r\n*Java Development Kit Version:* 1.8.0_73\r\n*Titanium CLI Version:* 5.0.6\r\n*Appcelerator CLI Version:* 5.2.2\r\n*Appcelerator Studio:* 4.5.0", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-06-12T06:18:36.000+0000", "updated": "2016-06-12T06:18:36.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }