{ "id": "154500", "key": "TIMOB-20269", "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": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2016-01-25T18:53:45.000+0000", "created": "2016-01-25T15:08:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "17072", "name": "Release 5.1.2", "archived": false, "released": true, "releaseDate": "2016-01-12" } ], "issuelinks": [ { "id": "50353", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "154463", "key": "TIMOB-20268", "fields": { "summary": "Android does not return STATE from reverseGeocoder result (iOS does)", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-06-23T22:59:44.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" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "On iOS the reverse geocoder response is passed straight through, but on Android the place objects are built (https://github.com/appcelerator/titanium_mobile/blob/bc85170157d3bebc5de1d61a9fe6e34bce84a8c9/android/modules/geolocation/src/java/ti/modules/titanium/geolocation/TiLocation.java#L330).\r\n\r\nThis means the API response is inconsistent between platforms with missing fields (e.g. \"state\"):\r\n\r\niOS:\r\n{code}\r\n{ \r\n \"success\": true, \r\n \"places\": [ \r\n { \r\n \"street\": \"West County Road 200 North\", \r\n \"city\": \"\", \r\n \"country\": \"United States of America\", \r\n \"address\": \"755 West County Road 200 North, Nash, IN 46122, United States of America\", \r\n \"zipcode\": \"46122\", \r\n \"longitude\": -86.53846722826599, \r\n \"latitude\": 39.790183228524015, \r\n \"country_code\": \"US\", \r\n \"state\": \"Indiana\" \r\n } \r\n ], \r\n \"code\": 0 \r\n}\r\n{code}\r\n\r\nAndroid:\r\n{code}\r\n{ \r\n \"source\": { \r\n \"locationServicesEnabled\": true, \r\n \"__propertiesDefined__\": true, \r\n \"lastGeolocation\": null, \r\n \"bubbleParent\": true, \r\n \"apiName\": \"Ti.Geolocation\", \r\n \"hasCompass\": false \r\n }, \r\n \"code\": 0, \r\n \"places\": [ \r\n { \r\n \"address\": \"755 West County Road 200 North, Nash, IN 46122, United States of America\", \r\n \"street\": \"West County Road 200 North\", \r\n \"postalCode\": \"46122\", \r\n \"country_code\": \"US\", \r\n \"countryCode\": \"US\", \r\n \"country\": \"United States of America\", \r\n \"street1\": \"West County Road 200 North\", \r\n \"longitude\": \"-86.538467228266\", \r\n \"region2\": \"\", \r\n \"city\": \"\", \r\n \"latitude\": \"39.790183228524\", \r\n \"region1\": \"\", \r\n \"displayAddress\": \"755 West County Road 200 North, Nash, IN 46122, United States of America\" \r\n } \r\n ], \r\n \"success\": true \r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Ti.Geolocation.reverseGeocoder returns different information on Android and iOS", "creator": { "name": "cbowley", "key": "cbowley", "displayName": "Chris Bowley", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "cbowley", "key": "cbowley", "displayName": "Chris Bowley", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "388972", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as duplicate & as the original issue is closed.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-06-23T22:59:37.000+0000", "updated": "2016-06-23T22:59:37.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }