Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
2019-07-08 19:17:08.753 [main] INFO c.g.r.tomtom.TTGraphHopperFactory - No tomtom config detected
2019-07-08 19:17:08.793 [main] INFO c.g.matrix.http.GraphHopperEEManaged - Loaded landmark splitting collection from
2019-07-08 19:17:08.793 [main] INFO c.g.matrix.http.GraphHopperEEManaged - {graph.dataaccess=RAM_STORE, graph.elevation.cgiar.clear=false, graph.flag_encoders=car|block_barriers=false,small_truck|block_barriers=false,truck|block_barriers=false,scooter|block_barriers=false, graph.bytes_for_flags=12, prepare.ch.weightings=fastest, graph.elevation.calc_mean=true, prepare.min_one_way_network_size=800, graph.elevation.cache_dir=/data/cgiar, prepare.min_network_size=800, graph.elevation.smoothing=true, prepare.ch.edge_based=edge_or_node, routing.max_visited_nodes=1500000, prepare.ch.threads=4, import.speedmodels_dir=./routing-ee/files/speedmodels, routing.round_trip.max_retries=2, graph.elevation.provider=multi, matrix.default_customer_priority=0, matrix.check_reference_routes=Berlin,Spain,France,USA
{
"version": 8,
"name": "gh-mvt",
"sources": {
"gh-mvt-tiles": {
"type": "vector",
"tiles": [
"http://127.0.0.1:8989/mvt/{z}/{x}/{y}.mvt?details=max_speed&details=road_class&details=road_environment"
]
},
@karussell
karussell / output.log
Last active June 12, 2019 16:28
stats edge based CH: prepare.ch.edge_based: edge_or_node, 2 threads, 4 profiles, no LM => ~65h per profile
2019-06-08 18:07:54.182 [fastest_small_truck_edge] INFO c.g.r.c.PrepareContractionHierarchies - took: 180935s, graph now - num edges: 227?362?802, num nodes: 173?012?687, num shortcuts: 633?753?377
2019-06-09 08:32:32.522 [fastest_car_edge] INFO c.g.r.c.PrepareContractionHierarchies - took: 232813s, graph now - num edges: 227?362?802, num nodes: 173?012?687, num shortcuts: 749?629?202
2019-06-10 21:58:44.572 [fastest_truck_edge] INFO c.g.r.c.PrepareContractionHierarchies - took: 186650s, graph now - num edges: 227?362?802, num nodes: 173?012?687, num shortcuts: 603?320?037
2019-06-12 03:07:34.821 [fastest_scooter_edge] INFO c.g.r.c.PrepareContractionHierarchies - took: 239702s, graph now - num edges: 227?362?802, num nodes: 173?012?687, num shortcuts: 747?637?733
7.7G edges
8.4G geometry
3.3G nodes
1.4G location_index
var lineLayer = L.geoJson().addTo(mapLayer.getMap());
lineLayer.options.style = function (feature) {
var p = feature.properties || {};
return {color:p.color||"gray", weight:p.weight||2, opacity:0.5};
}
var counter = 0;
var timeLimit = 10 * 30;
var Papa = require("papaparse");
Papa.parse("http://127.0.0.1:8989/spt?point=51.351201,12.398071&time_limit="+timeLimit+"&columns=prev_longitude,prev_latitude,longitude,latitude,time,road_environment", {
@karussell
karussell / install-android-sdk-linux.txt
Last active May 31, 2019 10:54
Install Android SDK for graphhopper/android
https://developer.android.com/studio/#downloads => sdk-tools-linux-4333796.zip
mkdir android-sdk-linux
cd android-sdk-linux
unzip ~/Downloads/sdk-tools-linux-4333796.zip
android-sdk-linux/tools/bin/sdkmanager "build-tools;27.0.3"
android-sdk-linux/tools/bin/sdkmanager "platforms;android-27"
# building with JDK 11 fails currently with javax/xml/something not available
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
mvn -P include-android clean install -DskipTests=true
cat /etc/hosts | sort -t' ' -k2
@karussell
karussell / initial_default
Last active April 18, 2019 13:55
nginx + acme.sh
server {
listen 80;
server_name sub.mydomain.com;
root /var/www/html;
location ~ /\.ht {
deny all;
}
}
package com.graphhopper.matrix.perf.test;
import com.graphhopper.api.GHMRequest;
import com.graphhopper.api.GHMatrixBatchRequester;
import com.graphhopper.api.GHMatrixSyncRequester;
import com.graphhopper.api.GraphHopperMatrixWeb;
import com.graphhopper.api.MatrixResponse;
import com.graphhopper.util.Helper;
import com.graphhopper.util.StopWatch;
import com.graphhopper.util.shapes.GHPoint;
import mapboxgl from 'mapbox-gl';
import {tilesUrl} from './config';
/**
* Represents the map that is displayed in the main view and deals with tiles etc., should be independent from
* any vector layers on top of it.
*/
export class Map {
constructor(container) {
@karussell
karussell / index.html
Last active May 2, 2022 00:02
Test UI to show roads from GraphHopper vector tiles endpoint https://github.com/graphhopper/graphhopper/tree/experimental-mvt
<!DOCTYPE html>
<html>
<head>
<title>Leaflet.VectorGrid Points Example</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css"/>
</head>
<body style='margin:0'>