Hello, I’m new to kodular, and I have the following question.
I would like to know how can I acquire an address from gooogle maps, and send it to a text box?
I’ve tried several times, but I can only acquire latitude and longitude, but not the full address.
but the address I want to acquire is the one clicked on the map, and not the address I am at, does the location sensor have this function?
Na i dont think so… Location sensor have that feature…
In order to acquire an address other than your current location from google maps is by using reverse geocoding (from latitude, longitude) . So when you click on map you get the lat and lng from that position and then you can pass that values to an api to get the address. You can use Google’s geocoding api or try another service like LocationIQ
No need for any API. Kodular has an in-built block named something like ‘Get Latitude and Longitude from Address’. Try that.
If you are referring to this, it is not working anymore
https://scripts.kodular.io/reversegeocoding/?reverse&lat=your_latitude&lng=your_longitude
@plantdoc2018 the question was how to get an address from map - not current, to a text box. With the proposed blocks you get the longitude and latitude from a given address (geocoding) not an address from lat and lng (reverse geocoding) See Location Sensor - Kodular Docs
This can work too. But yes. It’s not instantaneous. Have to retrieve from location sensor and it takes little time.
Plus I think I have seen an extension in this community for what you are actually asking for.
He wants to get another address not current So I believe reverse geocoding is the only way.
You might be asking for this.
Actually I’m not asking , I only proposed a solution. The above extension didn’t work for me cause when I used coordinates for Greece I got an address in Turkey
I believe we provided a lot of infos for @Alex_Tavares to try and find a solution
Okay…seen the reviews…
thank you very much to everyone who helped, I will test as possibilities.
Thank you! the solution really is to use reverse geolocation.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.