从谷歌地图中提取形状或放置api

时间:2014-09-08 16:49:45

标签: javascript google-maps google-maps-api-3 google-places-api

我想得到一些邮政编码的形状。 Google地图在网络界面上提供了此功能,但我似乎无法在API中找到它。

例如:

https://www.google.de/maps/place/10407+Berlin/@52.5343684,13.445555,15z/data=!4m2!3m1!1s0x47a84e74c0c46115:0x1c212049953dce70

我们在德国拥有邮政编码10407的边界。有没有办法获得积分?

1 个答案:

答案 0 :(得分:2)

FusionTable与德国邮政编码区域的多边形: https://www.google.com/fusiontables/data?docid=1fWU5Hb7_inrUsijiGbyH8d-TLq7jKs7LCnrb_Ao#map:id=3

10407的路径:

 [
  [52.538261, 13.450629], 
  [52.539188, 13.449742], 
  [52.542725, 13.440916], 
  [52.538097, 13.435909], 
  [52.53043, 13.42698], 
  [52.530327, 13.427414], 
  [52.530933, 13.432997], 
  [52.530247, 13.436489], 
  [52.5312, 13.440932], 
  [52.53022, 13.442185], 
  [52.527954, 13.444298], 
  [52.528072, 13.444825], 
  [52.529335, 13.449499], 
  [52.528686, 13.450039], 
  [52.530598, 13.458764], 
  [52.530556, 13.458761], 
  [52.531242, 13.46181], 
  [52.531891, 13.464031], 
  [52.539566, 13.469425], 
  [52.542442, 13.462722], 
  [52.543388, 13.45931], 
  [52.543613, 13.458677]
 ]

您应该从Deutsche Post Datafactory(地理编码)获得更准确的数据(当然不是免费的)