Reputation: 3864
I'm trying to set a border around some districts in the UK, similar to how Google do it on here : http://g.co/maps/wbtj3
Does Google release the latitude and longitude data for districts? I cannot see anything in the API which will allow me to search for a district and get the data for it to display on the map.
Is there an easy way to "extract" the latitude and longitude data for a district for use in an polygon?
It seems that American data is easier to find (http://econym.org.uk/gmap/states.xml) or am I not looking hard enough?
Appreciate any advice :).
Edit: I believe it's pretty new as I can't find much info about it "highlighted search results" - http://googlemapsmania.blogspot.com/2012/01/highlighted-search-results-in-google.html
Upvotes: 2
Views: 6730
Reputation: 1
Just came across this thread - you may have solved the problem a long time ago, but this may be useful: http://mapit.mysociety.org/
Upvotes: 0
Reputation: 180
afaik google doesn't offer such service in his APIs. But you could download you file of interest here: http://www.gadm.org/country if you grab it as kml, you could easily import it into Google-Maps.
Upvotes: 0
Reputation: 3838
OpenStreetMap has boundary data for English Counties which are free to use and available in multiple formats.
As far as I know, Google does not provide any underlying map data via an API.
Upvotes: 4
Reputation: 31922
I think you'd have to figure out the polygon coordinates yourself. If it was only for a few districts, maybe not such an onerous task. But if it's for the whole of the UK... Here's a website that will quickly give you coordinates as you draw polygons: http://www.birdtheme.org/useful/v3tool.html
Upvotes: 0
Reputation:
Getting co-ordinates for a polygon would require GIS files and a GIS software like MapInfo to read.
My advice would be visit this site;
http://bbs.keyhole.com/ubb/ubbthreads.php?ubb=showthreaded&Number=332073
Download the KML file which has the district boundaries of UK counties and then use it in either google earth or fusion tables.
Finding out what your using these for may help get a better answer...
Upvotes: 0