Creating GPX tracks from cycle routes in OpenStreetMap Henry - - PowerPoint PPT Presentation

creating gpx tracks from cycle routes in openstreetmap
SMART_READER_LITE
LIVE PREVIEW

Creating GPX tracks from cycle routes in OpenStreetMap Henry - - PowerPoint PPT Presentation

Creating GPX tracks from cycle routes in OpenStreetMap Henry Miskin Overview 1. Introduction 2. OpenStreetMap Data 3. Processing Cycle Routes 4. Complete Cycle Routes 5. Challenges & Next Steps Introduction Who I am Henry Miskin


slide-1
SLIDE 1

Creating GPX tracks from cycle routes in OpenStreetMap

Henry Miskin

slide-2
SLIDE 2

Overview

  • 1. Introduction
  • 2. OpenStreetMap Data
  • 3. Processing Cycle Routes
  • 4. Complete Cycle Routes
  • 5. Challenges & Next Steps
slide-3
SLIDE 3

Introduction

slide-4
SLIDE 4

Who I am

Henry Miskin @hpgmiskin hpgmiskin Cycling

slide-5
SLIDE 5
  • Poor or damaged signage
  • Foliage covers signes
  • Hard to recover when off route

Following cycle routes

slide-6
SLIDE 6

OpenCycleMap

slide-7
SLIDE 7

OpenCycleExport

Country Cycle Route

github.com/hpgmiskin/OpenCycleExport

slide-8
SLIDE 8

Why GPX files

slide-9
SLIDE 9

OpenStreetMap Data

slide-10
SLIDE 10

OpenStreetMap Data Model

Node Way Relation Coordinate Road Footpath Cycle Route

slide-11
SLIDE 11

Shapely Linemerge

slide-12
SLIDE 12

Shapely Linemerge Issues

slide-13
SLIDE 13

Ways not terminating together

slide-14
SLIDE 14

Ways not connected

slide-15
SLIDE 15

Processing Cycle Routes

slide-16
SLIDE 16

How it works

Overpass API Result Cache Download Relation Process Ways Save GPX File Create Route

slide-17
SLIDE 17

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

slide-18
SLIDE 18

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
slide-19
SLIDE 19

Basic routing example

slide-20
SLIDE 20

Missing link example

slide-21
SLIDE 21

Complete Cycle Routes

slide-22
SLIDE 22

Belgium - RV4

slide-23
SLIDE 23

France - V86

slide-24
SLIDE 24

United Kingdom - Route 2

slide-25
SLIDE 25

Challenges & Next Steps

slide-26
SLIDE 26

Current challenges

  • Finding elevation data for routes
  • Continuity of cycle routes or route data
  • Finding the true start and end points
slide-27
SLIDE 27

Next Steps

  • Release GPX files on GitHub
  • Declare which routes are not continuous
  • Split routes by the towns they pass through
slide-28
SLIDE 28

Any questions?