Google Maps API lets one use polygons to create shapes on a map.
What I wish to do is nest these polygons, and use them to describe data which can then be used for navigation.
Let's say that the data is population density. A series of nested polygons would surround a major city, each one with a value. The most densely populated city centers would have a small polygon with a value 10 (for very dense) and the suburbs might be surrounded by a larger polygon of value 5 (moderate density) and the countryside might be inside a giant polygon of value 1 (low density).
I would want to let a user navigate by these polygon values. For example, someone looking for the closest inner city area might be in a area of value 3 and might want to get to the closest area of value 8.
Setting aside for the moment how I would get the population density data into polygons (That is a problem for another day), Is there any existing way to do this utilizing Google Maps API and its polygon feature? Is there a better way to approach this problem that I am not considering?