Google地图是否有像HERE地图这样的Map Tile API? [英] Does Google Maps have a Map Tile API like HERE Maps?

查看:120
本文介绍了Google地图是否有像HERE地图这样的Map Tile API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google地图是否有瓦片API来接收有关建筑物的元信息?



例如:HERE地图提供瓦片API以获取有关建筑物的信息。但数据主要只在城市可用。请参阅: Here Map Tile API



来自HERE Map Tile API的响应如下所示:

  {metadata:{
street labels:[{name:DanzigerStraße,font size:13 ,顶点:[38.21,-18.57,79.17,4.82,88.82,10.34,121.50,30.46]}],
标签:[{name:111,type: TEXT,bounding boxes:[{annotation box:[146.69,139.41,26.62,16.75]}]}],
city center labels:[],
buildings: [{id:1609441356716643099,sector:[{info:{bottom height:0,height:6.125},vertices:[248,138.69,243,146.91,231, ,多边形:[[0,1,2,3,4],[5,2,1,6,7] ]],outlines:[[2,5,7,6,1,0,4],[3,2]]}],
传输停止:[],
POIs:[]
}

元数据可以用来告诉关于建筑物的一些事情,如长度等。



Google地图能够在所有地方绘制建筑物,请参阅此处:建筑物(农村)。

但是,我将如何获得这些元信息?

解决方案

我们多次提出相同的问题,最后我们对此做出了回应。 Google推出了一个新的API,您可以在非常特殊的情况下使用它,并且您必须证明它的使用是合理的。以下是文档:

https://developers.google.com/maps/documentation/tile/#tile_requests



希望得到这个帮助!


Does Google Maps have a tile API to receive meta information about buildings?

For example: HERE Maps offers a tile API to obtain information about buildings. But data is mainly only in cities available. See: Here Map Tile API.

A response from the HERE Map Tile API looks like this:

{ "metadata" : {
"street labels":[ { "name":"Danziger Straße", "font size":"13", "vertices": [ 38.21, -18.57, 79.17, 4.82, 88.82, 10.34, 121.50, 30.46 ] } ],
"labels":[{ "name": "111", "type":"TEXT", "bounding boxes": [ { "annotation  box":[ 146.69, 139.41, 26.62, 16.75 ] } ] }],
"city center labels":[],
"buildings":[ { "id": "1609441356716643099", "sectors": [ { "info": { "bottom height": 0, "height": 6.125 }, "vertices": [ 248, 138.69, 243, 146.91, 231, 174.84, 256, 189.18, 256, 142.78, 219, 197.88, 125, 82.78, 99, 132.09 ], "polygons": [ [ 0, 1, 2, 3, 4], [ 5, 2, 1, 6, 7]], "outlines": [ [ 2, 5, 7, 6, 1, 0, 4 ], [ 3, 2 ]] } ] } ],
"transit stops":[  ],
"POIs":[  ]
}

The metadata can be used to tell a few things about the building such as length, etc.

Google Maps is able draw buildings on all places see here: Buildings (Countryside).

But how would I be able to obtain those meta information?

解决方案

We made the same questions many times and finally we had a response to it. There is a new API launch by Google that you can use in very special cases and you have to justify the use of it. Here is the documentation:

https://developers.google.com/maps/documentation/tile/#tile_requests

Hope this help!

这篇关于Google地图是否有像HERE地图这样的Map Tile API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆