Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drawing districts of large cities using google maps or openstreetmaps APIs

Is it feasible to build a map using the google maps API or Openstreetmaps which has a superimposed layer that displays districts of a city? For example, Manhattan is a region within New York City, and I would like to be able to plot the boundaries of this region, and any neighboring regions on a map.

New York City District map

Where would one obtain the data for these regions (worldwide)?

like image 731
user1860694 Avatar asked Dec 12 '25 02:12

user1860694


1 Answers

I guess this can be achieved by using overpass turbo (which in turn uses the Overpass API) and the MapCSS styling feature by querying for all boundary=administrative relations with a certain admin_level=* tag (6 is for US counties). Although I'm not quite sure if the random colorization is actually possible.

Take this example as a start and see if you can improve it.

like image 84
scai Avatar answered Dec 14 '25 22:12

scai