Skip to content

Instantly share code, notes, and snippets.

View mmc1718's full-sized avatar

Mary M mmc1718

View GitHub Profile
@mmc1718
mmc1718 / boroughs.ipynb
Created May 22, 2023 17:24
boroughs.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mmc1718
mmc1718 / geodataframe.ipynb
Created May 22, 2023 11:17
geodataframe.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mmc1718
mmc1718 / explore-tables.ipynb
Created May 22, 2023 10:27
explore-tables.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mmc1718
mmc1718 / connect-sqlite.ipynb
Last active May 22, 2023 10:09
connect-sqlite.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mmc1718
mmc1718 / dependencies.ipynb
Last active May 20, 2023 20:35
dependencies.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mmc1718
mmc1718 / hamburg_profile.lua
Last active October 13, 2022 12:09
Example car profile for custom dataset
-- Example OSRM car profile
api_version = 4
Set = require('lib/set')
Sequence = require('lib/sequence')
Handlers = require("lib/way_handlers")
Relations = require("lib/relations")
find_access_tag = require("lib/access").find_access_tag
limit = require("lib/maxspeed").limit
@mmc1718
mmc1718 / car.lua
Last active October 9, 2022 18:04
-- copied from https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/car.lua
-- Car profile
api_version = 4
Set = require('lib/set')
Sequence = require('lib/sequence')
Handlers = require("lib/way_handlers")
Relations = require("lib/relations")
find_access_tag = require("lib/access").find_access_tag
@mmc1718
mmc1718 / overpass_ql_area_query.txt
Last active April 6, 2022 17:01
Overpass QL areas
[out:json][timeout:25];
(
node["natural"](around:500,47.462582,11.479545);
way["natural"](around:500,47.462582,11.479545);
relation["natural"](around:500,47.462582,11.479545);
relation["leisure"="nature_reserve"](around:500,47.462582,11.479545);
);
out geom;
is_in(47.462582,11.479545)->.enclosing_features;
relation["leisure"="nature_reserve"](pivot.enclosing_features);
@mmc1718
mmc1718 / overpassql_query.txt
Last active April 6, 2022 16:55
Overpass QL query to search for elements with natural feature tags
[out:json][timeout:25];
(
node["natural"](around:500,47.462582,11.479545);
way["natural"](around:500,47.462582,11.479545);
relation["natural"](around:500,47.462582,11.479545);
relation["leisure"="nature_reserve"](around:500,47.462582,11.479545);
);
out geom;