Skip to content
AndykmccPublic

About

Multimodal OSM router

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Cellan

Cellan is a multi-modal router designed for time-based navigation using OpenStreetMap (OSM) and General Transit Feed Specification (GTFS) data. It provides efficient pathfinding across different modes of transport, accounting for real-time schedules and geographical data.

Features

  • Multi-modal Routing: Supports walking, cycling, and public transit.
  • Time-based Navigation: Uses GTFS schedules for accurate arrival and departure times.
  • OSM Integration: Leverages OpenStreetMap data for street-level routing and infrastructure details.
  • Go Powered: Built with modern, idiomatic Go for performance and reliability.

Getting Started

Prerequisites

  • Go 1.25.6 or higher.
  • Graphviz (for graph visualization).

Installation

git clone https://github.com/andykmcc/cellan.git
cd cellan
go mod download

Example usage

./bin/cellan build -osm sample_data/norcal-260121.osm.pbf -elevation sample_data/PlanetDEM_1s_SanFrancisco.tif -gtfs sample_data/sf_sample_gtfs.zip -out ./sample_data/graph.db

./bin/cellan nearest -osm sample_data/norcal-260121.osm.pbf -elevation sample_data/PlanetDEM_1s_SanFrancisco.tif -gtfs sample_data/sf_sample.gtfs -lat 37.7749 -lon -122.4194

./bin/cellan route -db sample_data/graph.db -lat1 37.78452666486661 -lon1 -122.42862661817499 -lat2 37.75445324268108 -lon2 -122.40921547153422 -mode bike

./bin/cellan route -db sample_data/graph.db -lat1 37.78452666486661 -lon1 -122.42862661817499 -lat2 37.75445324268108 -lon2 -122.40921547153422 -mode multimodal -access walk -time 12:00

./bin/cellan route -db sample_data/graph.db -lat1 37.78452666486661 -lon1 -122.42862661817499 -lat2 37.75445324268108 -lon2 -122.40921547153422 -mode multimodal -access bike -time 12:00

./bin/cellan route -db sample_data/graph.db -lat1 37.78452666486661 -lon1 -122.42862661817499 -lat2 37.75445324268108 -lon2 -122.40921547153422 -mode transit -time 12:00

Development Rules

This project follows specific development guidelines defined in .agent/rules.md:

  • Always use modern idiomatic Go.
  • Always use the latest stable version of Go, tools, and dependencies.
  • Always write tests for new code.

License

This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.

Acknowledgements

Bikehopper fork of GraphHopper was a major inspiration for this project.

About

Multimodal OSM router

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages