https://github.com/amdmi3/rail-routing-demo
https://github.com/amdmi3/rail-routing-demo
openstreetmap routing
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/amdmi3/rail-routing-demo
- Owner: AMDmi3
- License: gpl-3.0
- Created: 2012-11-26T18:14:08.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-02-06T15:25:08.000Z (almost 13 years ago)
- Last Synced: 2025-03-11T16:24:01.986Z (10 months ago)
- Topics: openstreetmap, routing
- Language: C++
- Size: 188 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
Rail routing demo
===================
This is an an excerpt from my set of C++ OSM processing tools which
implements railroad router.
Repo structure
==============
Base classes for OSM objects
* osmtypes.h
* ObjectBases.hh
* Objects.hh
Base class for multipass OSM XML parser
* ParserBase.hh
Geographic math functions, namely distance and azimuth calculation
* geomath.hh
Custom container with effecient lazy initialization
* lazyinit_array.hh
Custom memory pool container
* pool.hh
Routing implementation itself
* railrouting.cc
* railrouting.hh
Demonstration program
* raildemo.cc
* raildemo.osm
Requirements
============
* Expat XML parser library with headers
* CMake
* C++ compiler with c++0x support (gcc>=4.6)
Building
========
cmake . && make
Running
=======
./raildemo raildemo.osm
This will load bundled raildemo.osm file with small part of Moscow
rail network and find a route between two hardcored stations.
License
=======
GPLv3
Author
======
Dmitry Marakasov