Break a bounding box into smaller boxes (coordinates)

by jim   Last Updated September 11, 2019 19:22 PM

My objective is to create a collection of bounding box coordinates that I can supply to a search function. The idea is that I have the search function search smaller geographic areas, instead of one large one.

To achieve this, I would like to develop some function that takes the following inputs: * Overall bounding box (to be divided) (4 lat/lng points) * Area of smaller bounding box

Are there any tools that I could use to do this?

The output should be a collection of sets (each has 4 points) representing bounding boxes that are inside the overall (parent) bounding box.

I am happy to write a tool using any language or alternatively use an intuitive web based tool.

Any ideas on how to do this?

I am in the process of figuring this out using simple functions that calculate the distance between two points, but writing here for sanity check also.

Related Questions

Updated October 02, 2018 12:22 PM

Updated July 06, 2018 14:22 PM

Updated May 25, 2018 19:22 PM

Updated August 03, 2016 08:09 AM

Updated May 13, 2015 12:47 PM