Skip to content

Instantly share code, notes, and snippets.

@vgeorge
Last active August 2, 2016 14:10
Show Gist options
  • Save vgeorge/14aaf36340fd0fc30327d4dce96581ed to your computer and use it in GitHub Desktop.
Save vgeorge/14aaf36340fd0fc30327d4dce96581ed to your computer and use it in GitHub Desktop.
Como baixar geojson transporte sobre trilhos de uma cidade no OpenStreetMap

A consulta a seguir busca relações do tipo "route"="train" e "route"="subway" na área identificada como geocodeArea:SP:

[out:json][timeout:900];
{{geocodeArea:SP}}->.searchArea;
(
  relation["route"="train"](area.searchArea);
  relation["route"="subway"](area.searchArea);
);
out body;
>;
out skel qt;

Execute no Overpass e exporte como GeoJSON pelo botão Exportar no menu superior.

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