Skip to content

Instantly share code, notes, and snippets.

@timwaters
Created August 14, 2015 13:02
Show Gist options
  • Save timwaters/a5c65ceb67c4dc887e06 to your computer and use it in GitHub Desktop.
Save timwaters/a5c65ceb67c4dc887e06 to your computer and use it in GitHub Desktop.
http://overpass.openhistoricalmap.org/api//interpreter?data=%2F*%0AThis%20has%20been%20generated%20by%20the%20overpass-turbo%20wizard.%0AThe%20original%20search%20was%3A%0A%E2%80%9Chighway%3D*%20and%20type%3Away%E2%80%9D%0A*%2F%0A[out%3Ajson][timeout%3A25]%3B%0A%2F%2F%20gather%20results%0A%28%0A%20%20%2F%2F%20query%20part%20for%3A%20%E2%80%9Chighway%3D*%E2%80%9D%0A%20%20way[%22highway%22]%2850.74253872133164%2C-1.6280364990234373%2C51.132400312945464%2C-0.90362548828125%29%3B%0A%29%3B%0A%2F%2F%20print%20results%0Aout%20body%3B%0A%3E%3B%0Aout%20skel%20qt%3B
@timwaters
Copy link
Author

here is the above decoded

http://overpass.openhistoricalmap.org/api//interpreter?data=/*
This has been generated by the overpass-turbo wizard.
The original search was:
“highway=* and type:way”
*/
[out:json][timeout:25];
// gather results
(
  // query part for: “highway=*”
  way["highway"](50.74253872133164,-1.6280364990234373,51.132400312945464,-0.90362548828125);
);
// print results
out body;
>;
out skel qt;

@timwaters
Copy link
Author

shorter version:

http://overpass.openhistoricalmap.org/api//interpreter?data=
[out:json][timeout:25];
(
  // query part for: “highway=*”
  way["highway"](50.74253872133164,-1.6280364990234373,51.132400312945464,-0.90362548828125);
);
out body;
>;
out skel qt;

which encoded:

http://overpass.openhistoricalmap.org/api//interpreter?data=[out%3Ajson][timeout%3A25]%3B%0A%28%0A%20%20%2F%2F%20query%20part%20for%3A%20%E2%80%9Chighway%3D*%E2%80%9D%0A%20%20way[%22highway%22]%2850.74253872133164%2C-1.6280364990234373%2C51.132400312945464%2C-0.90362548828125%29%3B%0A%29%3B%0Aout%20body%3B%0A%3E%3B%0Aout%20skel%20qt%3B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment