Can this plugin generate zip code boundaries from a list of zip codes and addresses?
Hi @jacob2
To do that, typically you would need to store all the polygon coordinates for each zip code in your database and then run the required set of coordinates for a particular zip code through the Draw Shape action. I’ve worked with people that have done this in the past, but it’s a lot of data to store. I know there are datasets such that you get from US Zip Codes Database | Simplemaps.com where you can get that type of data from.
The other way is to use the polygon boundaries feature Google have. It requires a little bit of extra setup, but it enables boundaries to be drawn onto the map automatically for certain feature layers. For example, take a look at this page - Polygon Boundaries. If you just scroll down past the images and enter a location into the address box (it’s not a standard Bubble address box, instead one I’ve put into the plugin) then you can change the feature layer dropdown to Locality or other options and a red outline should go around the particular location you’ve entered. This was an experimental feature and the demo page wasn’t fully completed but it can be used in the plugin.
Hope that helps,
Paul
Hiya,
Thanks for the video. How do you draw the very first shape? I noticed as soon as you click onto he map the shape was drawn.
When you use the Draw Shape action, each shape can be given a shape ID (it’s always automatically generated too) and can be retrieved from the “shape id” state.
There’s an action called Remove Shape where you can pass that same shape ID back into, then the shape gets removed from the map.
Paul
Hmm… i dont think I’m skilled enough yet to figure that one out on my own. Thank you, i wish there was some kind of tutorial or guid from somelnes thats built this. I’ll have to dig in and figure it out i think.