Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7583] Ti API: reverseGeocoder callback argument properties differ by platform

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-15T18:43:17.000+0000
Affected Version/sRelease 1.8.1
Fix Version/sn/a
ComponentsTiAPI
Labelsparity, tbs-2.1.0
ReporterArthur Evans
AssigneeIngo Muschenetz
Created2012-02-08T17:18:04.000+0000
Updated2017-06-15T18:43:17.000+0000

Description

The places array in the callback argument includes the same basic information, but the property names differ. In particular, iOS uses "zipcode" while Android uses "postalCode" for the same property. iOS returns "country_code", while Android returns this as both "country_code" and "countryCode". There are some values in the Android results that are empty (region1, region2), and it also contains duplicate information in the street and street1 properties, and the displayAddress property appears to duplicate address. iOS doesn't appear to return street1 or displayAddress. Would be good to be able to document which of these we intend to keep. iOS results: "places":[{ "zipcode":"94043", "address":"440 Bernardo Ave, Mountain View, CA 94043-5209, , United States", "city":"Mountain View", "country_code":"US", "country":"United States", "longitude":"-122.050156", "latitude":"37.389072", "street":"Bernardo Ave"}] Android results: "places":[{ "street1":"Bernardo Ave", "postalCode":"94043", "address":"440 Bernardo Ave, Mountain View, CA 94043-5209, , United States", "displayAddress":"440 Bernardo Ave, Mountain View, CA 94043-5209, , United States", "street":"Bernardo Ave", "countryCode":"US", "region2":"", "longitude":"-122.050156", "region1":"", "latitude":"37.389071", "country_code":"US", "country":"United States", "city":"Mountain View"}]

Comments

  1. Lee Morris 2017-06-15

    Closing ticket due to time passed and lack of progress in the past few years. Any problems, please file a new ticket.

JSON Source