I have custom locations names with unique latitudes and longitudes stored in my Bubble database.
These unique lats and longs don’t correspond to addresses so converting them to an address wouldn’t work in this situation.
I need to pass the longitude,latitude to my Google Maps Directions API parameter like so: “48.86,2.29”.
I can pass either latitude or longitude, but I don’t know how to pass both of them together separated by a comma.
Similarly, I would like to pass a variable number of “waypoints” (stops between starting and ending destination) to the waypoints parameter like so: “48.86,2.29|49.26,3.39”.
Again I’m not clear on how to pass variables to a parameter separated by a character of my choosing.
Hi @vini_brito thanks for the response. I’ve toyed with that feature but I still don’t see how to get a comma between the longitude and latitude (even with that feature).
Good! Take a look at this answer, the “:formatted as” is a bit different. It starts with a boolean value and you build the text however you want.
You can scan the forum for more threads mentioning it if needed.
okkay so just a quick overview, i’ll be honest in that i’m not quite following your problem, however this what i do for coordinates:
(it isn’t actually outputting 1028.58, that’s just an example), and “Location” is a text data type - but this get’s both sides into a single field in my database…
that being said, for optimized directions, i’ve had good luck up until recently using this plugin: