如何从overpass-turbo获得json结果?

Kin*_*Kin 2 openstreetmap overpass-api

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

我的要求是:

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

小智 5

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

[out:json]; ...
Run Code Online (Sandbox Code Playgroud)