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