Change to Address Component Types in India not reflected by Androids Geocoder

87 Views Asked by At

Because of the notice about changes to Address Types and Address Component Types for addresses in India I was wondering how we can reflect that, using the Android Geocoder from SDK which returns Address objects. These Address objects only return admin area levels 1-2, but not 3, nor 4.

Hence the above mentioned change notice, I need to get the district level admin area, but I will get the division instead.

An example:

This location in Delhi has North West Delhi as district (admin level 3).

developers-dot-devsite-v2-prod.appspot.com

enter image description here

But from Androids Geocoder for the same lat/lon I get as first Address only level 1 and 2.

Address[addressLines=[0:"delhi green park 16 delhi green park 16, Lodhi Colony, Sector 3, Rohini, Delhi, 110085, India"],feature=Lodhi Colony,admin=Delhi,sub-admin=Delhi Division,locality=Delhi,thoroughfare=null,postalCode=110085,countryCode=IN,countryName=India,hasLatitude=true,latitude=28.7040517,hasLongitude=true,longitude=77.1024532,phone=null,url=null,extras=null]

See admin=Delhi,sub-admin=Delhi Division,locality=Delhi,

Is it even possible to get admin area level 3 from Geocoder? Will there possibly be an update in the future to reflect the changes on API side?

1

There are 1 best solutions below

1
miguev On

Please note that the Android Geocoder is not one of the Google Maps Platform Services. Its functionality is much more limited than that of the Geocoding API which is the one you would need to use in order to obtain additional address components.