Geofencing a Location Without an Official Address Using Latitude/Longitude





There is a very large mountain, but on the map it only has a single official address. I’d like to pick the lower-left corner of the mountain—where there is no street address—as a meeting point, define a radius around it, and trigger an action whenever a user enters that radius. Since that corner has no separate address, can I substitute the address below with a latitude/longitude pair?

Filtered:
Advanced: This Place’s Address distance from Current geographic position ≤ This Place’s Radius(km)

Have you tested it yet?

When I set the field that stores latitude/longitude to the Geographic address type, Bubble reverse-geocodes the coordinates into an address whose reference point is the centroid of a broad area, not the exact spot I intended. In practice, this means the “distance from” operator can’t use the raw coordinates directly.

For example, I can place a marker at coordinates near the edge of the Sahara Desert. But if those coordinates don’t have a unique street-level address, Bubble resolves them to the larger region—e.g., the center of the Sahara. Saving that as a Geographic address then causes distance from to be computed against the centroid rather than the edge location. If I were setting a meetup point in the Sahara and the saved address pointed to the desert’s center, travelers would be misdirected.

I’m therefore looking for a way to feed raw coordinates into distance from without converting them to a Geographic address. If you have a workaround or solution for this behavior, I’d appreciate your advice.

No matter which way you go about it, you likely will not provide accurate information since there are probably few ways to incorporate the need to either scale and descend the mountain or to ‘go around’ the mountain. Most distances are ‘as the crows fly’ meaning straight line from point A to point B disregarding all features that must be traversed.

You can try searching online for solutions, maybe there is some sort of javascript library that can do that. But for just measuring distance between two sets or coordinates you can do math on that.

But I don’t know, I’ve never need to build something giving distances for lost souls of the Sahara looking for an Oasis :grinning_face_with_smiling_eyes:

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