Getting user location (input) and display in map

Hello!

For an administrative app, I need users to enter their precise address (worldwide, street name, number, zip).
Is there any dynamic search component to replace my multiple fields (country, street, number, zip) like we have in Google maps? Once collected, I can display it in a maps component.

I haven’t find any tuto for the first part.

Thanks

there is a default input element called Searchbox. use that and set it to choices style->geographic places

Hi.

Yes, and I found this tutorial.

But it looks that we cannot get the complete address, like the house number is missing. Does it mean I need an additional field for it? But it won’t update the precise location in the database from this additioal field.

Also, is there a way to save in the database all the location information (longitude, latitude, country,…) instead of the formatted value?

Thanks

the house number shouldn’t be missing, can you provide a specific example so i can try it in my own search?
for additional information, make additional fields within your location lookup data type for what you want to collect (lat, long, county, country, etc.)
then, when you do your lookup, use the :extract operator to save specific data into those fields

Hi,

Sorry for the long reply, I had some holidays.

Looks like sometimes the address is not found (no listed suggestion, or the component turn red after enter). Is it because of the fact that we have a limited version of it as part of the design (without API setup)?

Ok for the extract! Thanks. What about Longitude and Latitude data? I though this was available too.

Sylvain

This topic was automatically closed after 70 days. New replies are no longer allowed.