我正在进行一个映射项目,其中涉及使用Tangram (一个令人敬畏的webgl映射库)来可视化地图上的建筑物。七巧板建筑来自开放街道地图,并使用OSM id:

不过,正如“财富”杂志( fortune )所做的那样,我的数据来自谷歌的Location,后者拥有自己的id系统。使用以下请求:
curl https://maps.googleapis.com/maps/api/geocode/json?address=Timble-Bridge,%20Yorkshire%20Britain&key=API_KEY_HERE
一个返回(请注意在底部的位置id散列):
{
"results": [
{
"address_components": [
{
"long_name": "59",
"short_name": "59",
"types": [
"street_number"
]
},
{
"long_name": "Long Lane",
"short_name": "Long Ln",
"types": [
"route"
]
},
{
"long_name": "London",
"short_name": "London",
"types": [
"postal_town"
]
},
{
"long_name": "Greater London",
"short_name": "Greater London",
"types": [
"administrative_area_level_2",
"political"
]
},
{
"long_name": "England",
"short_name": "England",
"types": [
"administrative_area_level_1",
"political"
]
},
{
"long_name": "United Kingdom",
"short_name": "GB",
"types": [
"country",
"political"
]
},
{
"long_name": "EC1A 9EJ",
"short_name": "EC1A 9EJ",
"types": [
"postal_code"
]
}
],
"formatted_address": "59 Long Ln, London EC1A 9EJ, UK",
"geometry": {
"location": {
"lat": 51.5192377,
"lng": -0.0998815
},
"location_type": "ROOFTOP",
"viewport": {
"northeast": {
"lat": 51.52058668029149,
"lng": -0.09853251970849797
},
"southwest": {
"lat": 51.51788871970849,
"lng": -0.101230480291502
}
}
},
"partial_match": true,
"place_id": "ChIJ5UYg9FMbdkgRBOslATQK-ok",
"types": [
"cafe",
"establishment",
"food",
"point_of_interest"
]
}
],
"status": "OK"
}我现在想知道是否有任何现存的数据库可以将OSM id映射到Google location id,如果有人知道任何这样的服务,或者可以用来确定地将OSM和Google id映射到高级身份识别服务的任何高阶映射,我将非常感谢您能提供的任何见解。
发布于 2017-06-25 07:37:00
不,这样的数据库不存在,也不可能存在。
这样的绘图将要求:
https://stackoverflow.com/questions/44737216
复制相似问题