Extract address from reversgeolocation serive

Thanks Shehrii

Sorry for adjusting my question

I tried many different ways for the last 4 days and I figured out that the only way for me to get shorter address is
to map the response from my reverseGelocation service directly to the page with adding JS code

Now I just need to extract long_name in "administrative_area_level_1" from service to page by mapping if you can help me

I mapped address_componenets[i] to a label on my page and I added below JS code to mapping but it didn't work

var value= "administrative_area_level_1".substring(s.indexOf(',') + 2, "administrative_area_level_1".lastIndexOf(','));

If I get this working it will make my day


1 person has
this question