Maps Grid Creator

Hi all,

Quick post on a new plugin that’s now available.

https://paul-testing.bubbleapps.io/version-test/grid_creator

Plugin: Maps Grid Creator Plugin | Bubble

It’s designed to generate a grid of points over a specified area and it returns the coordinates of intersecting points within a grid.

You can customize the grid by providing a center position (latitude and longitude), a distance (kilometers or miles) and a density value to control the grid size.

The idea behind this was because I needed a way to use the Google Places API to return more than the capped 60 results that you get when using pagination (or 20 without). Although not a new idea, this will return a list of latitude/longitude values that you can iterate through, making a Places request using each item.

The results should then be filtered to make sure any duplicates (from crossed over areas) are removed which should give the results from a much wider search area. You would need to be vigilant with the number of requests you make though, since you could incur additional charges depending on the fields returned through that API and the number of points generated.

The state called “intersecting points” will look like this (36 items from the above grid)

Hopefully it will be a useful tool !

You can also use it to constrain results to a polygon as shown.

Paul

This is so great Paul. I will definitely be a user

1 Like

Hey Paul, saw your post in another thread on integrating react code into bubble. We have a flow builder that we’ve built in react in our standalone web app and are transitioning our platform to bubble. Are you open to doing some contract work? Would be a very short project, we already have all the code written and it’s been deployed in production for about 5 months now and used by 1000’s of users, just need to make it so we can use in our bubble app now

My email is lancer.thomas123@gmail.com if you want to shoot me an email there and can talk in more detail

Update v1.4.0

Google Places API (Nearby and Text Searches)

The following server side actions have been included and the list of intersecting points (or postal codes) can be fed into either action to return a combined list of places from each point plotted on the grid. Beware, the more points you have, the more requests are made which could lead to higher Google bills.