Skip to content

meriadec/node-ratp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ratp

NodeJS wrapper around RATP real-time API.

Documentation and inscription: https://data.ratp.fr/page/temps-reel/

Installation

npm install ratp

Usage

import ratp from 'ratp'

const payload = {
  station: {
    line: {
      code: '13',
    },
    name: 'gabriel peri',
  },
}

ratp.getStations(payload).then(res => {

  console.log(res)

  // {
  //   stations: [
  //     {
  //       geoPointA: [Object],
  //       geoPointR: [Object],
  //       id: '1947-2202',
  //       line: [Object],
  //       name: 'Gabriel-Peri',
  //       stationArea: [Object]
  //     }
  //   ]
  // }

})

Methods

  • getLines
  • getDirections
  • getStations
  • getStationAreas
  • getMissionsNext
  • getMissionsFirstLast
  • getMissionsFrequency
  • getMission

About

NodeJS wrapper for RATP API

Resources

Stars

Watchers

Forks

Packages

No packages published