PHPackages                             gtfs/csa-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gtfs/csa-php

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

gtfs/csa-php
============

Simple routing algorithm based on CSA and GTFS

1.0.0(6y ago)5461MIT LicensePHP

Since Feb 9Pushed 6y ago2 watchersCompare

[ Source](https://github.com/sebastianknopf/gtfs-csa-php)[ Packagist](https://packagist.org/packages/gtfs/csa-php)[ RSS](/packages/gtfs-csa-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (1)

Connection Scan Algorithm in PHP
================================

[](#connection-scan-algorithm-in-php)

Simple library to compute public transport routes directly based on timetable data.

Overview
--------

[](#overview)

This library provides a basic implementation of the CSA (Connection Scan Algorithm) introduced 2013. To use this algorithm with data from public transport agencies, there's no need to build a graph out of them like this would be using the Dijkstra or the A\* algorithm.

Sadly there're only a few little projects using this algorithm in practice. The intent to develop this library is not to re-invent the wheel but learn about the issues when using 'real data' and how to fix them as well as keeping a simple and extendable PHP implementation of CSA which can be used in other projects.

Installation
------------

[](#installation)

To use this library, add it to your composer dependencies by typing

```
composer require gtfs/csa-routing

```

or when beginning from the scratch, simply clone this repo and type

```
composer install

```

in your command line environment.

Usage
-----

[](#usage)

For usage there're two main classes called `Scanner` (for computing the connections) and `Journey` for back-routing and computing your route.

```
