Saving GPS location not Address

The new data view is great, but it did surprise me that the address is an actual address, not the current GPS location. Is it possible to store the actual GPS location rather than translating this to an address ? Thanks.

1 Like

So the way we save addresses contains the GPS info actually. When youā€™re editing your app, you can select latitude/longitude to display after the address in the composer. Our current view system doesnā€™t enable you to use this info to display it, but you can

  1. create your own data view in an admin page
  2. save the latitude/longitude in 2 different numerical fields and display them in the data view.
1 Like

In other words if you create a form where, among other things, it saves a location then you could have the field to be of Address type which accepts two kinds of input: ā€œMikonou 41-47, Pireas 185 41, Greeceā€ or ā€œ37.955289, 23.663386ā€ will both work and give the same location!
Just try it and enjoy!

Ahhh, it all now makes sense :smile:

Thanks, yes, I am using the GPS position to add things rather than inputs, so it must be doing both but only showing me one.

1 Like

How can I get the GPS location of the user?

ā€œCurrent positionā€ ā€¦ Scroll down a bit :slight_smile:

2 Likes

Thanks! I can see it now. :smile:

1 Like

So, just to be clear, there is no way to use a latitude and longitude to plot a point on a google map?

I took a recent trip to Ireland and took some pictures in uncommon places. My pictures are geo-tagged which is correct when I look up the degrees, minutes, seconds. But when I enter the decimal degrees for latitude, longitude in to my app, the app maps it to the closest address, which seldom is correct.

Any guidance would be appreciated!

By the looks of it, this behavior has changed since October time.

As you say, it now seems to have some quantisation to an actual address.

I had previously managed to get a precise lat/long working ā€¦

And that worked (sort of) by stepping the marker across the map.

Sadly I have now deleted that page, so canā€™t compare between now and then.

Yes right now thing work with addresses. We could look into adding this, but we need to think a little about it first. Please email us to see what we can do.

I think it used to save the actual lat/long but the nearest address. You could certainly pull back the same position from the address as you saved. But now you can see the lat/long change.

Soā€¦Current Position isnā€™t current position anymore. It is ā€œnearest address to current positionā€ it seems when saved as an address.

Isnā€™t quite so much adding, as putting back how it used to be :smile:

Although what seems different is that I canā€™t set an address to be a lat/long now.

I can enter lat/long in an address type input field ā€¦ but if you then pull out the lat/long for the address then it has been transformed into the lat/long at the address.

That isnā€™t too bad, as I could pull out the lat/long into new data fields.

What I now canā€™t do is display them on a map at that position.

It would be useful to be able to separate position from address.

Weā€™re pushing now a formula that lets you go from coordinates the an address (including the formatted address, if available). That way, you can display coordinates on a map.

Pick ā€˜Calculate Formulaā€™ in the dropdown and then ā€˜Coordinates to Addressā€™.

5 Likes

Awesome :slight_smile:

1 Like

Ok, having another play with this and ā€¦ I am confused.

It used to be that ā€œcurrent locationā€ stored the current GPS and the nearest address. And it would display the GPS position on the map.

And then something changed, and when you displayed the address on a map it showed the marker at the nearest address not the GPS position. So location quanitsed to addresses.

But now it has been put back the way it was ? Is that right ?

This new ā€œCoordinates to Addressā€ just allows you to store an address with a lat/long (for example two input fields) so you donā€™t have to have separate fields ?

Or am I missing something ?

The formula is here to convert a duo lat/lon into an address that Bubble understands, puts on a map, etc. What you do with it (save it, etc.) is up to you.

This seems to solve the issue that Iā€™m hoping too solveā€¦ But I canā€™t seem to figure out the type settings as it keeps giving me an issue.

What is wrong with the below settings?

Lat/Long values is of type = text thing = airport

I assume setting of the map must be ā€˜google placesā€™?

Or what am I supposed to set each element too while using this ā€˜calculate formulaā€™ to arrive at a fixed address to populate on google maps?

How is this feature functioning right now?

Iā€™m about to start a new project where the ability to track and use precise GPS coordinates is vital to mark landscape features and trees and display them on a map. Can that be done?

Hello,

Which feature are you talking about? You can certainly extract GPS location from address, and go from coordinates to addresses.

Hi!

Iā€™m talking about the function of displaying coordinates on the map. When I have saved some objects with precise coordinates, can these be displayed on the map by the same coordinates (e.g. two trees separately with a distance of 7 meters between them are displayed as separate markers when zooming close enough) or are the coordinates translated to address and displayed as a generic address marker (e.g. the same two trees are on the same address therefore the map markers overlap and are displayed at the address derived from the coordinates)

Thanks!

We have a formula that lets you enter two coordinates (can be dynamic) and return an address that can be displayed on a map. See the formula option in the first drop down of the expression composer.

1 Like