通过使用OpenStreetMap API获得城市名称来调出地图

Bring up the map by having the city name with OpenStreetMap API

本文关键字:地图 城市 OpenStreetMap API      更新时间:2024-02-23

我可以使用OpenStreetMap API(如Google Maps API)直接调出城市地图(只知道城市名称,不知道坐标)吗?

在通过openstreetmapapi获取地图数据之前,您可以使用nominatim服务作为中间步骤来查找所需地图的坐标。

http://wiki.openstreetmap.org/wiki/Nominatim#Reverse_Geocoding_.2F_Address_lookup