0
我正在研究一個涉及使用Tangram(令人敬畏的webgl映射庫)以在地圖上顯示建築物的地圖項目。七巧板大樓來自開放街道地圖,並使用OSM的ID:將Google建築物ID映射到開放街道地圖建築物ID
由於運氣將有它雖然,我的數據來自谷歌的位置API,它有自己的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.1
}
}
},
"partial_match": true,
"place_id": "ChIJ5UYg9FMbdkgRBOslATQK-ok",
"types": [
"cafe",
"establishment",
"food",
"point_of_interest"
]
}
],
"status": "OK"
}
我現在想知道如果有這麼OSM的ID映射到任何現存的數據庫:
curl https://maps.googleapis.com/maps/api/geocode/json?address=Timble-Bridge,%20Yorkshire%20Britain&key=API_KEY_HERE
一個(在底部的位置ID散注)回來Google位置ID的。如果有人知道任何此類服務或任何可用於確定性地將OSM和Google ID映射到更高級識別服務的更高階映射,我將非常感謝您提供的任何洞察力。
謝謝@scai。你知道OSM中id的改變的條件嗎? – duhaime
@duhaime例如,如果一棟建築物分成兩個獨立的建築物,以提高OSM的細節水平。或者如果建築物之所以合併,是因爲它們以前被錯誤地映射過一個單獨的建築物。 – scai
非常感謝,這是很好的知道... – duhaime