This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ctypes import * | |
import struct | |
from enum import Enum | |
""" | |
Converts valhalla's tile header & edge speeds into byte objects to be compressed. | |
""" | |
HEADER_FORMAT = '<2Q4L' # 2 uint_64, 4 uint_32 from the traffic header |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Author: Nils Nolde <[email protected]> | |
# Updated: 15-12-2020 | |
# License: MIT | |
# | |
# Update OSM PBF files in batch by specifying a folder and a fixed update interval. For planet updates rather check https://docs.osmcode.org/pyosmium/latest/tools_uptodate.html. | |
# | |
# Requires: | |
# - jq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
div.badge { | |
display: inline-block; | |
border-radius: .75em; | |
font-family: 'Dejavu Sans','Arial'; | |
} | |
div.badge div { | |
display: inline-block; |
this assumes you have installed Python 3 via Anaconda distribution.
- open a terminal and create a new python 2 environment:
conda create -n py27 python=2.7
- activate the environment: linux
source activate py27
or windowsactivate py27
- install the kernel in the env:
conda install notebook ipykernel
- install the kernel for outside the env:
ipython kernel install --user
- close the env:
source deactivate