Accessing google maps area coordinates (suburb bou

2019-01-14 13:20发布

问题:

I'm trying to show some data about Australian suburbs. 'Suburb' is the term that Australians use to describe an area, if you are from the rest of the world think post code or something similar.

I'd like to be able to get access to the area boundaries that are already in the map. These are examples of the kind of boundary that I'm talking about:

Marrickville, Sydney (2204): http://goo.gl/maps/QYRhx

Clapton, London (E5): http://goo.gl/maps/3an2Y

I want to be able to draw the boundary on the map, draw multiple boundaries on a map (e.g. show which areas make up the 'inner west'), shade the areas to indicate their vaue of something or other. Generally do stuff with them.

  • This question asks about how to get boundaries that are drawn manually, but I want to access the ones that already exist.
  • This question asks a similar question, but it isn't answered.
  • This question is similar, but the responses suggest using shape files, not getting them directly from Google.
  • I've also tried the maps styling wizard, and whilst the administrative, neighborhood boundary is what I need to show, it doesn't seem to be able to affect the map.

I've looked in the api docs to no avail. Does anyone know if this is possible?

回答1:

No, it isn't possible. The area boundaries feature is not (yet?) implemented in the API.



回答2:

If you explicitly need data from Google then I can't help you.

But if you just need data on Australian suburbs and don't care where you get it from (and if you happen to be interested in SA or NSW) then you can get GeoJSON or KML for SA from data.sa.gov.au/data/dataset/suburb-boundaries and for NSW from data.gov.au/dataset/nsw-suburb-locality-boundaries-psma-administrative-boundaries.

You might find others at data.gov.au/dataset too, I haven't searched that much.