[TIMOB-23496] TiAPI: Deprecate old Geolocation properties, add more parity
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-01-09T18:27:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 8.0.0 |
Components | Android, iOS, TiAPI, Windows |
Labels | parity |
Reporter | Christopher Williams |
Assignee | Christopher Williams |
Created | 2016-06-10T19:08:45.000+0000 |
Updated | 2019-01-09T18:27:59.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")
These GeocodedAddess values are the JSON values originally what
api.appcelerator.net
returns on Windows/iOS. I expect this can be resolved when AndroidTi.Geolocation
implementation usesapi.appcelerator.net
too.[~mchen] Is this something you would like to work on? Basically, it's about better parity across the platforms. I think the problem is that we cannot just remove any property from the result, so we would either need to put it into 7.0.0 together with a special (docs) note or we return both for now.
PR https://github.com/appcelerator/titanium_mobile/pull/8823
PR (master): https://github.com/appcelerator/titanium_mobile/pull/9647 PR (7_0_X): https://github.com/appcelerator/titanium_mobile/pull/9654 Created TIMOB-25578 to actually remove it in 8.0.0.
Closing the old PR as we have a few other things to get straight before: - Remove generally deprecated Android geolocation API's (called "legacy mode") - Be clear about which API's should be deprecated, added or removed (as per Chris' comment [here](https://github.com/appcelerator/titanium_mobile/pull/9647#issuecomment-364253066))
https://github.com/appcelerator/titanium_mobile/pull/10543
FR Passed. Waiting for conflicts to be resolved.
For Windows: https://github.com/appcelerator/titanium_mobile_windows/pull/1338
Conflicts still need to be resolved for https://github.com/appcelerator/titanium_mobile/pull/10543