from cycle routes in openstreetmap creating gpx tracks

28
Creating GPX tracks from cycle routes in OpenStreetMap Henry Miskin

Upload: others

Post on 26-Apr-2022

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: from cycle routes in OpenStreetMap Creating GPX tracks

Creating GPX tracks from cycle routes in OpenStreetMapHenry Miskin

Page 2: from cycle routes in OpenStreetMap Creating GPX tracks

Overview

1. Introduction

2. OpenStreetMap Data

3. Processing Cycle Routes

4. Complete Cycle Routes

5. Challenges & Next Steps

Page 3: from cycle routes in OpenStreetMap Creating GPX tracks

Introduction

Page 4: from cycle routes in OpenStreetMap Creating GPX tracks

Who I am

Henry Miskin

@hpgmiskin

hpgmiskin

Cycling

Page 5: from cycle routes in OpenStreetMap Creating GPX tracks

- Poor or damaged signage

- Foliage covers signes

- Hard to recover when off route

Following cycle routes

Page 6: from cycle routes in OpenStreetMap Creating GPX tracks

OpenCycleMap

Page 7: from cycle routes in OpenStreetMap Creating GPX tracks

OpenCycleExport

Country

Cycle Route

github.com/hpgmiskin/OpenCycleExport

Page 8: from cycle routes in OpenStreetMap Creating GPX tracks

Why GPX files

Page 9: from cycle routes in OpenStreetMap Creating GPX tracks

OpenStreetMap Data

Page 10: from cycle routes in OpenStreetMap Creating GPX tracks

OpenStreetMap Data Model

Node Way Relation

Coordinate RoadFootpath Cycle Route

Page 11: from cycle routes in OpenStreetMap Creating GPX tracks

Shapely Linemerge

Page 12: from cycle routes in OpenStreetMap Creating GPX tracks

Shapely Linemerge Issues

Page 13: from cycle routes in OpenStreetMap Creating GPX tracks

Ways not terminating together

Page 14: from cycle routes in OpenStreetMap Creating GPX tracks

Ways not connected

Page 15: from cycle routes in OpenStreetMap Creating GPX tracks

Processing Cycle Routes

Page 16: from cycle routes in OpenStreetMap Creating GPX tracks

How it works

Overpass API

Result Cache

Download Relation

Process Ways

Save GPX File

Create Route

Page 17: from cycle routes in OpenStreetMap Creating GPX tracks

Processing ways

1. Find all places ways intersect

2. Split ways at all intersecting points

3. Create cost matrix between all intersections

COST = DISTANCE * COEFFICIENT

Cycle Only

Cycle Permitted

Passible Road

Impassable Road

No Road

Page 18: from cycle routes in OpenStreetMap Creating GPX tracks

Creating a route

1. Find furthest points from one another

2. Use Dijkstra's algorithm to find shortest path

3. Compute route in both directions

Page 19: from cycle routes in OpenStreetMap Creating GPX tracks

Basic routing example

Page 20: from cycle routes in OpenStreetMap Creating GPX tracks

Missing link example

Page 21: from cycle routes in OpenStreetMap Creating GPX tracks

Complete Cycle Routes

Page 22: from cycle routes in OpenStreetMap Creating GPX tracks

Belgium - RV4

Page 23: from cycle routes in OpenStreetMap Creating GPX tracks

France - V86

Page 24: from cycle routes in OpenStreetMap Creating GPX tracks

United Kingdom - Route 2

Page 25: from cycle routes in OpenStreetMap Creating GPX tracks

Challenges & Next Steps

Page 26: from cycle routes in OpenStreetMap Creating GPX tracks

Current challenges

- Finding elevation data for routes

- Continuity of cycle routes or route data

- Finding the true start and end points

Page 27: from cycle routes in OpenStreetMap Creating GPX tracks

Next Steps

- Release GPX files on GitHub

- Declare which routes are not continuous

- Split routes by the towns they pass through

Page 28: from cycle routes in OpenStreetMap Creating GPX tracks

Any questions?