2017-08-31 85 views
0

我已經找到一個地理空間點最近的節點(ID)的OpenStreetMap的項目OSRM最近OpenStreetMap的點號

我可以使用官方演示API
https://router.project-osrm.org/nearest/v1/foot/13.388860,52.517037

和我有這個非常好的輸出:

/ 20170831155106 
// https://router.project-osrm.org/nearest/v1/foot/13.388860,52.517037 

{ 
    "waypoints": [ 
    { 
    "hint": "DB0KgLNSo4oUAAAAIAAAAAcAAAAAAAAACgAAABAAAAAEAAAAAAAAAK7aAAAATMwAqVghAzxMzACtWCEDAQAPAN1tFXI=", 
    "distance": 4.085341, 
    "location": [ 
    13.3888, 
    52.517033 
    ], 
    "name": "Friedrichstraße" 
} 

], 「代碼」: 「OK」 }

但din't給我最近的OSM節點ID,我不能用「?註釋=真」,因爲我recive此消息

https://router.project-osrm.org/nearest/v1/foot/13.388860,52.51703713.388860,52.517037?annotations=true

{'code': 'InvalidQuery', 
'message': 'Query string malformed close to position 37'} 

感謝所有幫助!

回答