Categorygithub.com/coopgo/osmtransit
modulepackage
0.0.0-20210706220151-ac08b7934663
Repository: https://github.com/coopgo/osmtransit.git
Documentation: pkg.go.dev

# README

coopgo/osmtransit

made-with-Go GitHub go.mod Go version of a Go module go.dev reference

Package coopgo/osmtransit is a Golang library to extract transit data from OpenStreetMap PBF files.

The main features of this package are :

  • Scan OSM files in the osm.pbf format (example : https://download.geofabrik.de/europe/france-latest.osm.pbf)
  • Extract transit data (stops, routes, ...)
  • Uses GTFS data structures from the coopgo/gtfs library to return transit data (ability to convert OSM transit data to partial GTFS files/CSV files using this library -still under development there-)

Supported transit objects (and TODO list) :

  • Stops
  • Stop Areas

...

Usage

You can get retrieve transit objects through :

  • A channel for concurrent processing using parser.Extract(...)
  • A slice of TransitData objects using parser.TransitData()
  • A structured transit feed using parser.TransitFeed()

Check out examples in the examples folder.

Project Status

This library is still in development.

Contributing

We welcome any contributions following theses guidelines :

  • Write simple, clear and maintainable code and avoid technical debt.
  • Leave the code cleaner than when you started.
  • Refactoring existing code for better performance, better readability or better testing wins over creating a new feature.

If you want to contribute, you can fork the repository and create a pull request.

Bug report

For reporting a bug, you can open an issue using the Bug Report template. Try to write a bug report that is easy to understand and explain how to reproduce the bug. Do not duplicate an existing issue and keep each issue specific to an individual bug.

License

coopgo/osmtransit is under the Apache 2.0 license. Please refer to the LICENSE file for details.

# Functions

NewParser creates a new custom parser.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author

# Structs

Parser is the struct that contains all the options and data to parse OSM PBF files.
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

ParserOption is a function that sets a certain config on a Parser.
No description provided by the author
No description provided by the author
No description provided by the author