Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.
/ itinero-routing Public archive

PHP process to calculate routes using Itinero Routing API

License

Notifications You must be signed in to change notification settings

geo6/itinero-routing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Itinero Routing

The goal of this tool is to calculate routes between 2 datasets of points with Routing API from Itinero : https://github.com/itinero/routing-api.
Itinero Routing API uses the data and geometry from OpenStreetMap !

Install

The tool only requires PHP 7.0+.

git clone https://github.com/geo6/itinero-routing
cd itinero-routing/

# Install Composer
curl -sS https://getcomposer.org/installer | php

# Install dependencies
php composer.phar install

Usage

php route.php --from=data/testFrom.csv --to=data/testTo.csv --api=http://localhost/belgium/

Options

Option Default Description
--from - Required - CSV file containing from points
--to - Required - CSV file containing to points
--api - Required - URL to Itinero Routing API
--profile car Routing profile used by Itinero Routing API
--mode fastest Minimize time with fastest value, or distance with closest value
--no-header - Add this option if your CSV file does not contain columns name in first line
--full - Generate an additional file with all the routes calculated

File structure

Your files must be valid CSV (Comma-separated values) files.
The structure is the following :

  • Longitude (float)
  • Latitude (float)
  • Identifier (string or integer)
  • Any additional information

Have a look at data/testFrom.csv or data/testTo.csv if necessary.

About

PHP process to calculate routes using Itinero Routing API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages