Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

peterpeerdeman/amsterdam-parking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amsterdam-parking

peterpeerdeman

DEPRECATION NOTICE: The API's were changed to a protected cloudflare endpoint, the URL that was used in this module is not working anymore

An Amsterdam Parking API client for Node

Usage

// Import the Amsterdam Parking client
const AP = require('amsterdam-parking');

// Create a new AP instance
var ap = new AP();

// Get the parking information
ap.getCurrentAvailability().then((resp) => {
    console.log(resp);
});

This call will return something similar to the following Javascript object.

[
    {
        status: 'success',
        name: 'P+R Johan Cruijff ArenA',
        availability: 'Available',
        spaces: 1704,
    },
    {
        status: 'success',
        name: 'P+R Zeeburg 2',
        availability: 'Available',
        spaces: 253,
    },
    {
        status: 'success',
        name: 'P+R Noord',
        availability: 'Available',
        spaces: 190,
    },
    {
        status: 'success',
        name: 'P+R Sloterdijk',
        availability: 'Available',
        spaces: 51,
    },
    {
        status: 'success',
        name: 'P+R Bos en Lommer',
        availability: 'Available',
        spaces: 45,
    },
    {
        status: 'success',
        name: 'P+R Zeeburg 1',
        availability: 'Available',
        spaces: 15,
    },
    {
        status: 'danger',
        name: 'P+R Olympisch Stadion',
        availability: 'Full',
        spaces: 0,
    },
    { status: 'active', name: 'P+R RAI', availability: 'Closed', spaces: 0 },
    {
        status: 'active',
        name: 'Weekend P+R VUmc',
        availability: 'Closed',
        spaces: 0,
    },
];

The following API calls are available

ap.getCurrentAvailability();

About

a module that retrieves information about p+r parking spaces in amsterdam and returns them in json format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors