Public | Automated Build

Last pushed: 9 months ago
Short Description
API to retrieve Montreal's snow removal parkings close to you.
Full Description

YeoulParking

Return Montreal's free parking lot during snow removal operations.

Build

docker build -t yeoulparking .

Run

"Production" mode:

docker run -d \
    -p 5000:5000 \
    --name yeoulparking \
    yeoulparking

Development mode:

docker run -d \
    -p 5000:5000 \
    -e FLASK_DEBUG=1 \
    --name yeoulparking \
    -v $PWD:/usr/src/app \
    yeoulparking

API

/ping (validate the server is working):

curl http://localhost:5000/ping

/parkings returns the available parking lots:

curl http://localhost:5000/parkings

Additionally, latitude and longitudecan be provided in the query string,
in which case the distance to each parking will be returned,
and the results will be ordered with the closest parkings first:

curl http://localhost:5000/parkings?latitude=45.5253394&longitude=-73.574828
Docker Pull Command
Owner
samueldg