我有兴趣为OSM数据库中的POI查找其他数据。
当前,我可以使用以下SQL来获取所有POI的名称+ long + lat
SELECT name,
x(transform(way, 4326)) AS lon,
y(transform(way, 4326)) AS lat
FROM planet_osm_point
WHERE tourism='museum'
UNION
SELECT name,
x(centroid(transform(way, 4326))) AS lon,
y(centroid(transform(way, 4326))) AS lat
FROM planet_osm_polygon
WHERE tourism='museum'
我还想知道最近的城镇名称或POI所在的城镇名称。
您是否已经设置了反向地理编码(位置到名称)系统?
—
BradHards