Skip to content

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

Notifications You must be signed in to change notification settings

joelhaasnoot/PHPNSTrains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages