Google Maps API V3 UK Districts - javascript

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

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.

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...

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

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.

Just came across this thread - you may have solved the problem a long time ago, but this may be useful:
http://mapit.mysociety.org/

Related

Data visualization on map

I’m working on a vuejs project, I want to make some data visualisation on a map: display a map and show some percentages for each country. I really do not know from where to start. What tools to use ? Is there some tutorials and javascript libraries that can help ? Thanks !
If you just want to show some percentages on each country, and you don't need those detail information on the maps, maybe you don't need Google Maps.
Try D3.js. There are several examples you can build with. DataMaps would be a good choice.
you could use the google maps api, they have good documentation on all their stuff.
https://developers.google.com/maps/documentation/
It should be noted however that these days you need a account with billing information to use their maps api's.
to be honest your question is so broad that if i were you i would first start to brainstorm and get a good grasp about what i wanted to do and how to do it.

Google Maps API - Get Property Boundary Data

I am looking for a way to extract built in property boundary data from the Google API to know where to highlight areas for information needs.
It's easy enough drawing a polygon, but I want to know where to draw it in a more automated fashion. Perhaps similar to Geocoding for extracting an address location, except the geocoder only provides a central coordinate and a bounding box (for screen navigation) unfortunately.
Does Google provide this property data in some form?
Thanks
Having looked through the Maps APIs fairly extensively and no one suggesting otherwise. I think it's pretty conclusive Google Maps does not provide property boundaries.
The best way to go is to look for a service that does have the data to integrate into Maps, but likely costs money.
As an example these may be:
Your local government's land services
RPData.com - http://www.rpdata.com/residential_property_information/residential_property_information.html
ReportAllUSA.com (if you are American) - http://reportallusa.com/
None of these are guaranteed, looking into them myself, but may also be different from person to person depending on costs. If I find a free one, I'll give a shout.
For anyone looking to implement this on Australian Region.
State & Local councils have open data free for usage.
I am working with Brisbane, QLD Australia:
For Brisbane: https://www.data.brisbane.qld.gov.au/data/dataset?q=parcel
For QLD: https://www.data.qld.gov.au/dataset?q=parcel
P.S parcel dataset contains information about individual Property Listings. It does have a learning curve & takes sometime to use open data.

how to create GPS location widget using django?

i am newbie to web development in all aspects;
i've went through the bast tutorial of django and now i would like to construct something which can launch a map on html, let the user pick a location and return the (lang,lat) coordinates back to django;
any ideas of how generally this should be accomplished?
if you got a working example it would be even more nice.
Thanks
have you tried http://djangosnippets.org ?
Google Geocode Lookup: http://djangosnippets.org/snippets/293/
Get Latitude and Longitude from google maps: http://djangosnippets.org/snippets/483/
There's GeoDjango, which is Django with Geospatial capabilities - it uses a spatial database such as spatialite or PostGIS.
That will do for database management. For map presentation, use OpenLayers or some other open source javascript map framework.
Hopefully that's enough for you to do some research and find a solution. If you've got more specific questions, ask them either here or more likely on the gis.stackexchange.com site.

how does the google maps identifies the roads(paths)?

when i went through the source code of the google maps page i've realized that the whole map is formed by small tiles of images. But how does the javascript identifies the roads on the google maps to show the way from ourlocation to destination??
I couldn't tell you HOW it works, it is a very complex application but all the work is done on the server and the reason the page shows the map as images is purely down to the limited ways in which a browser can display content.
Google have several layers with information about streets, roads, etc... when you use google maps only show a "graphical representation" of their data in bitmap format, but they need a "vectorial" layer that we don't see it.
Calculate routing is a very complex infraestructure problem in GIS server, for example, with Geoserver and PostGIS you can use Dijkstra Routing with Pgdijkstra.
It's very complex question, for a short answer.

Interactive world map

I'm looking for a javascript world map, much like Google Maps, that can be embedded into a webpage, and extended so I can plot my own points on it. The major catch is that the map needs to be completely usable without an internet connection (i.e., local intranet). It doesn't need to have the same level of detail as Google Maps, but should be able to have a little bit of zoom capabilities. Any ideas?
Edit: I'm not talking about a street map, more like an atlas map, preferably with terrain data. Sorry
You may want to investigate OpenLayers, which is an open source web-based mapping engine.
I don't know of any engines off the top of my head, but there are several sources of map data that are free to use:
If you can utilize imagery without street data, NASA's Blue Marble project is handy. However, as mentioned by others, the data can be very large.
For street maps you could download the whole planet database from OpenStreetMap, but it's about 160GB uncompressed!
For topography, you could try GLOBE.

Categories