Google 地图 API - 从郊区的起点到终点标记一条街道

Google Maps API - Mark a street from start to end of a suburb

我不确定这是否属于 Whosebug,因为它不是技术编码,但我想不出它属于哪里。

目前,我们正在开发一个移动应用程序,我们正在考虑使用 Google 地图 API 到 return 街道十字路口的起点和终点特定郊区。

例如,如果郊区 A 包含街道 B 的一半,它只会突出显示街道 B 的那一部分。

看了下面的几篇文章(Getting long/lat points of a suburb, getting start/end co-ords of a street),基本总结就是

I believe that Google does not expose the information about the suburb's boundary. You could store the points in boundary yourself, and display them with a Polygon.

The Google Maps API v3 doesn't do that. You need to find a different data source or manually determine the coordinates.

很明显,这消除了 Google 地图。是否有任何其他地图 API 可以在移动和网络浏览器上使用,可以显示这些突出显示的街道点?

我们正在考虑的另一种选择是,我们手动将坐标插入数据库并从中读取 application/s,然后按照第一个链接的答案暗示的那样,手动绘制路线?

如果这个问题需要修改或转移到另一个交易所,请不要犹豫让我知道。

问得好,我想找到了答案(请注意这是针对澳大利亚的,但类似的过程也适用于其他地方)。 http://www.datalicious.com/blog/2012/03/19/free-australian-suburb-boundary-data-for-mapp/ 这可能会有所帮助。他们:

We used the Australian Bureau of Statistics data, which offers the suburb boundaries as an ESRI shapefile. This data in essence offers the perimeters of every suburb in Australia using GPS coordinates. The ABS offers some its boundary data in more friendly formats, but many are not – hence the blog post. The process involved importing the ESRI shapefile into an open-source program called Quantum GIS that allowed an export of the suburb boundaries into a format we could work with (i.e. CSV format).

如果您可以从中提取坐标,则可以在 google 地图中使用它来查找与您想要的街道相关的郊区边界,并且仅 select 街道内的部分你想要的郊区。

我确定还有其他解决方案,但我认为直接通过 Google 地图 API(如此处所示:Accessing google maps area coordinates (suburb boundaries))是不可能的。