March 17, 2008

Google Maps: Distance to Polygon

This Google Maps mashup takes in multiple KML files with multiple polygons and lets you click away on the map to find the distance from the clicked point to all the polygons in de KML sources.

The serverside distance-to-polygon algorithm is run through an AJAX call.
I might translate the algorithm to javascript in the future, so all can be done clientside. For now, it's a proof of concept, at most.

The source files are available here (zip).

Below is an embedded version.
The fullscreen version is here.


Please let me know what you think by leaving a comment. You're free to use this script for your own application, but I'd appreciate it if you tell me about it. Plain curiosity :-)

For my other Google Maps trials, see this overview.

No comments:

Post a Comment