Isnât there just. Sometimes it is a little too open, and there are lots of ways to do things, but it allows so many things to be done.
Will check out the example you just posted. Thanks Nigel
Working great Nigel. Thanks so much!
Quick Q Nigel.
How would I stop the modal âXYZ wants to use your locationâ?
Would prefer the user to add their location into the search field only?
Curious how you displayed the UTC offset, Current time etc�
Many thanks
Just remove the default geo position from the search box, and it wonât ask for permission.
The UTC offset is available as a standard data element. Divide by 60 to get it in hours.
With that you can then calculate their time by using the timezoneID in the time display functionâs Dynamic Time Zone.
Works great. Thanks again Nigel.
Can I ask how you extracted the country to display in Country/Zone (ie; United Kingdom, United States, Japan etcâŚ)?
Many thanks
How to achieve this? Have tried a few different ways and struggling to get it to work
Many thanks
Got ya! Loving the extract feature
As in the example, you can get the UTC Offset straight from the geo.search input.
This is in minutes, so divide by 60.
Sorry Nigel. Got it. Many thanks
One last thing. I noticed the time does not refresh? Is that due to my app being in Dev mode or something else?
Many thanks
Thatâs a very valid point
Iâve got States figured out (one thing I can tick off my Bubble Bucket List), so will go ahead and implement what youâve mentioned Nigel.
How do I add my users selection (ie; they chose London, UK in the search) to the User DB data type (ie; âCurrent Locationâ field?) The option in the Workflow is greyed out currently? Iâm guessing itâs not so simple with it being pulled in from a 3rd party i guess?
Well all that bravado about knowing States, and I couldnât get it to work Nigel!
I got so farâŚ
But no time change
Thanks Keith. How would I add the location they chose (ie; London, UK) to a field in the User Data Type? So this will always show the correct timezone, time etc⌠on the front-end
I have set up a Search Box with Geographic places, but in my Workflow when I try to make changes to a User, the Search Box is greyed out with the text âIncompatible typeâ?
Many thanks
Hi @marc2,
I use a standard text input (set to address type) and a map for visual feedback. This is THE way to collect locations in Bubble in my opinion.
Donât use the search box. It doesnât help.
This project shows pretty much exactly (UI-wise) how I collect addresses in my own apps. Examine the project (editor is âeveryone can viewâ):
Editor: https://bubble.io/page?name=index&id=timezone-api-bug&tab=tabs-1
Best regards,
Keith
Any pointers, great appreciated @NigelG
The field on the user will need to be Geo Address.
have updated the app above showing this.
Thanks Nigel. Youâve been awesome!