Need Google Maps with Grid Overlay and data generated with PHP, output in JSON -- 2
Budget: $10 – $30 USD
Please take a look at the attached .JPG file to get a picture of what I need.
I basically need a Google Maps with a Grid Overlay of squares. The code needs to be done in PHP and the map output to the browser.
I need to be able to adjust the settings such as:
- Starting Square (GPS location)
- Square size
- How many squares to the left, right, top and bottom of the starting square.
- Each square needs to have a unique ID (00001, 00002, etc)
- The marker needs to be clickable/hoverable so I can see the ID of the square.
Also output to the browser I need the JSON data of the squares in this format:
{"zone":"00001","lat_1":"15.170091","long_1":"104.806800","lat_2":"15.170091","long_2":"104.811800","lat_3":"15.175091","long_3":"104.811800","lat_4":"15.175091","long_4":"104.806800", "center":""}
lat_x and long_x are the coordinates of the 4 corners of the square. center is the GPS square's center (location of the marker)
What is important is that the GPS of the square corners line up exactly. For example, one square top RIGHT corner ending at 52.509,14.000, then the next square top LEFT corner also needs to start exactly at 52.509,14.000. I cannot have gaps in between. Earth curvature will not be a problem because the map is only used at city level.
I understand having thousands of markers on a map can be a problem, but this should not be an issue here because I don't plan on having that many. There will probably be around 600-700 squares on the map.
I basically need a Google Maps with a Grid Overlay of squares. The code needs to be done in PHP and the map output to the browser.
I need to be able to adjust the settings such as:
- Starting Square (GPS location)
- Square size
- How many squares to the left, right, top and bottom of the starting square.
- Each square needs to have a unique ID (00001, 00002, etc)
- The marker needs to be clickable/hoverable so I can see the ID of the square.
Also output to the browser I need the JSON data of the squares in this format:
{"zone":"00001","lat_1":"15.170091","long_1":"104.806800","lat_2":"15.170091","long_2":"104.811800","lat_3":"15.175091","long_3":"104.811800","lat_4":"15.175091","long_4":"104.806800", "center":""}
lat_x and long_x are the coordinates of the 4 corners of the square. center is the GPS square's center (location of the marker)
What is important is that the GPS of the square corners line up exactly. For example, one square top RIGHT corner ending at 52.509,14.000, then the next square top LEFT corner also needs to start exactly at 52.509,14.000. I cannot have gaps in between. Earth curvature will not be a problem because the map is only used at city level.
I understand having thousands of markers on a map can be a problem, but this should not be an issue here because I don't plan on having that many. There will probably be around 600-700 squares on the map.