是否可以从http://overpass-turbo.eu/(或直接从 openstreetmap)获得 JSON 格式的结果?
我的要求是:
(
way
(around:2000,55.693309807744484,21.151986122131348)
[highway~"^(primary|secondary|tertiary|residential)$"]
[name];
>;);out;
是否可以从http://overpass-turbo.eu/(或直接从 openstreetmap)获得 JSON 格式的结果?
我的要求是:
(
way
(around:2000,55.693309807744484,21.151986122131348)
[highway~"^(primary|secondary|tertiary|residential)$"]
[name];
>;);out;
您需要在语句前面添加这一行:
[out:json]; ...
这是查询:http ://overpass-api.de/api/interpreter?data=[out:json]%20;%20(%20way%20(around:2000,55.693309807744484,21.151986122131348)%20[highway~ %22 ^(primary|secondary|tertiary|residential)$%22]%20[name];%20%3E;);%20out;
你的丢失了:
[out:json]
;
<your part>
和%20
之前out;