Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25578] TiAPI: Remove deprecated Geolocation values, only use new ones

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2019-12-10T11:59:38.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.0.0
ComponentsAndroid, iOS, TiAPI
Labelsparity
ReporterChristopher Williams
AssigneeVijay Singh
Created2017-12-01T21:03:15.000+0000
Updated2019-12-10T11:59:38.000+0000

Description

http://docs.appcelerator.com/platform/latest/#!/api/GeocodedAddress Specifically, it is insane that we: - have a postalCode property on Android, but zipcode on iOS/Windows. - latitude and longitude are Numbers on iOS/Windows, but String on Android. - have both country_code (on all platforms), and countryCode (only on Android) (we should likely have the same property, and given our naming scheme, it should be called "countryCode") It was deprecated as part of TIMOB-23496 and will now be removed.

Comments

  1. Vijay Singh 2019-11-19

    PR (sdk) - https://github.com/appcelerator/titanium_mobile/pull/11350 PR (mocha) - https://github.com/appcelerator/titanium-mobile-mocha-suite/pull/210 Test Case -
       var win = Ti.UI.createWindow({
           backgroundColor: '#fff'
       });
       
       var btn = Ti.UI.createButton({
           title: 'Trigger'
       });
       
       btn.addEventListener('click', function() {
           Ti.API.info('Hello world!');
           Ti.Geolocation.reverseGeocoder('37.773972',  '-122.431297', function(e){
              Ti.API.info('inside  reverse!');
       	   Ti.API.info(JSON.stringify(e));
           });
       });
       
       win.add(btn);
       win.open();
       
  2. Kota Iguchi 2019-11-21

    Cloned off a Windows ticket for this one: TIMOB-27620
  3. Samir Mohammed 2019-11-27

    FR Passed, waiting on Jenkins build.
  4. Christopher Williams 2019-12-09

    merged to master for 9.0.0
  5. Sohail Saddique 2019-12-10

    Build verified. There is now parity between the two platforms.
       countryCode
       
    and
       postalCode
       
    are now being used correctly on both platforms. Ticket closed.

JSON Source