2

是否可以从http://overpass-turbo.eu/(或直接从 openstreetmap)获得 JSON 格式的结果?

我的要求是:

(
  way
  (around:2000,55.693309807744484,21.151986122131348)
  [highway~"^(primary|secondary|tertiary|residential)$"]
  [name];
>;);out;
4

2 回答 2

5

您需要在语句前面添加这一行:

[out:json]; ...
于 2013-11-29T14:52:52.690 回答
1

这是查询: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;

于 2015-05-27T21:19:46.180 回答