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
悉尼马里克维尔(2204):http://goo.gl/maps/QYRhx
Clapton, London (E5): http://goo.gl/maps/3an2Y
克莱普顿,伦敦(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.
我希望能够在地图上绘制边界,在地图上绘制多个边界(例如,显示哪些区域构成“内部西部”),遮蔽区域以指示他们对某些东西或其他内容的vaue。一般用它们做东西。
- 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.
- 这个问题类似,但回复建议使用形状文件,而不是直接从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?
我查看api文档无济于事。有谁知道这是否可能?
2 个解决方案
#1
1
No, it isn't possible. The area boundaries feature is not (yet?) implemented in the API.
不,这是不可能的。区域边界功能尚未在API中实现(尚?)。
#2
0
If you explicitly need data from Google then I can't help you.
如果您明确需要Google的数据,那么我无法帮助您。
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.
但是如果您只需要澳大利亚郊区的数据并且不关心从哪里得到它(如果您恰好对SA或NSW感兴趣)那么您可以从data.sa.gov.au/获得GeoJSON或KML for SA。数据/数据集/郊区边界和新南威尔士州的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.
您也可以在data.gov.au/dataset找到其他人,我没有搜索过那么多。
#1
1
No, it isn't possible. The area boundaries feature is not (yet?) implemented in the API.
不,这是不可能的。区域边界功能尚未在API中实现(尚?)。
#2
0
If you explicitly need data from Google then I can't help you.
如果您明确需要Google的数据,那么我无法帮助您。
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.
但是如果您只需要澳大利亚郊区的数据并且不关心从哪里得到它(如果您恰好对SA或NSW感兴趣)那么您可以从data.sa.gov.au/获得GeoJSON或KML for SA。数据/数据集/郊区边界和新南威尔士州的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.
您也可以在data.gov.au/dataset找到其他人,我没有搜索过那么多。