Services Plugins FAQs

Use Bulk Geo Coder to convert search box geographic address to lat/long to add pin to MapBox

I would like to add a pin to my MapBox based on the user input from a search box searching a geographic address.

I have tried using the Bulk Geo Coder to convert the input from the search box to lat/long for the Mapbox plugin.

However, when I attempt to do this with the Bulk Geo Coder, the search box no longer suggests locations in a dropdown.

I have tried to work around this, creating a field that fills with the address input in the search box and then having the Bulk Geo Coder convert the address in that field to lat/long.

But the search box still doesn’t suggest addresses when I do that.

When I remove this bulk geo coder action, the search box goes back to suggesting addresses upon user input.

I want to be able to add user input from a search box that suggests addresses as a pin on my MapBox.

My app is: https://route-manager.bubbleapps.io/ and you are already a collaborator.

Hi @harrisonalley, the Bulk Google GeoCoding plugin is formatting addresses all as lists, even with Lat and Long, which can be really frustrating for developing your specific app.
In case you’d like for a user to search for an geographic address with a dropdown suggestion, I can suggest you check out this plugin instead https://zeroqode.com/plugin/google-places-autocomplete-1544612805685x644407669572501500 as it is possible to easily extract the Lat and Long of a location based on user’s input, that can be later used as coordinates for the map pins.
The Google Places Autocomplete plugin searches for a full address of a place and has lot more information that might be helpful. You can test its demo app here https://zeroqode-demo-13.bubbleapps.io/google_places.

However, regarding Bulk Google GeoCoding plugin within your app, let us check it and get back with a reply asap.

Thank you for understanding.

Thanks @alexandru. I’m happy to use the Google Places Autocomplete plugin but I noticed that it returns lat/long in one field and the MapBox plugin requires latitude in one field and longitude in another. How would I work around that?

Hi @harrisonalley, here are a couple of screenshots of our demo app, to showcase how to separately retrieve Lat or Long of a place:

For Latitude:
image

For Longitude:
image

Hope it helps!

1 Like

Thanks!

That’s super helpful. For some reason, my search box isn’t suggesting search items here: https://route-manager.bubbleapps.io/google_autocomplete

Would love some input!

You are already a collaborator.

Hi @harrisonalley, in order to make the search input suggesting places, it is required to assign searchInput to ID Attribute field. Please check demo editor here https://bubble.io/page?type=page&name=google_places&id=zeroqode-demo-13&tab=tabs-1 to preview all the settings and plugin’s documentation here https://docs.zeroqode.com/plugins/fastest-google-places-autocomplete for more information. Also, please take into account that we cannot always check on issues inside our customers’ apps, unfortunately. Thank you for understanding.

1 Like

Are there any plans to have the Mapbox plugin support this workflow out of the box? My app has a standard Google Places geographic input search with dropdown autocomplete, that then puts pins on a Google map (I don’t do any routing).

Would be interesting to have a Mapbox-based alternative that does all this. Or could the MapBox map be set to search only individual locations (no routing), and send those to the Bubble page or database?

@nicedwar this might help: https://docs.google.com/spreadsheets/d/16pT15MxqzoB5ZqvNg1pQmEzqL_w533pcvvELJE3LPdo/edit?usp=sharing I’ve been keeping track of what different map plugins for Bubble can and can’t do.

If you want to save geographic addresses from the lat/longs that you passed to MapBox, you can use Bubble’s API connector with Google’s API to reverse geocode your lat/longs to geographic addresses then save those addresses to your database.

I use Google’s API to periodically update the geographic address of some lat/longs I have saved in my database.

1 Like