Android Question Is there an example on how to get zip code from my geolocalization?

joaquinortiz

Active Member
Licensed User
Longtime User
I read, that by using Google APi, is possible to get Zip Code, depending on my Latitude and Long.

Is there any sample of this in B4A?

Thanks in advance!.
 

JohnC

Expert
Licensed User
Longtime User
Use this lib:


Only after you get a successful location event, then you can read the address, including the zip code.
 
Upvote 0

joaquinortiz

Active Member
Licensed User
Longtime User

Thanks John. I tested and it works, goooddd!!!...I'm curious!. This address(including Zip Code) from where it's extracting this information?.

Also I realize, that in some case, I run it, several times, and it doesn't bring the aproximatelly address, or in this case, the same Zip Code...for instance. I received at this momento my zipcode 64170....but after some time after (liek an 1 hour) I receive zipcode 64159.

I think that this could be for the GPS antenna, that it's not exactly. Or I'm wrong?
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
I have not used the lib myself.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…