Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

PhpNsTrains

This is a PHP API for accessing the NS (Dutch Railways) API / WebService. Details for this service and signing up (account is required, rate limited to 50,000 requests per service, per day) are documented here.

Currently supported is:

  • List of train stations
  • Live departures
  • List of disruptions
  • Trip planning and fares

Basic usage example

require ('ns_api.class.php');
$ns = new NsApi(API_ACCOUNT, API_KEY);
$ns->getStations('code', true);

About

PHP class to access the NS (Dutch Railways) API to access train planning, departures, stations and pricing.

Resources

Releases

No releases published

Languages

You can’t perform that action at this time.