Skip to content

mschlachter/access-mtl-map-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Access MTL Map API

Small API to fetch the list of Access Montreal partners with geo-coordinate data added. Can be used to build a map of places to use an Access Montreal card, e.g. https://www.schlachter.xyz/projects/access-montreal-map

Available as a container at https://hub.docker.com/r/mschlachter/access-mtl-map-api

Contains data scraped from https://montreal.ca/en/articles/acces-montreal-card-exclusive-offers-and-discounts-5990 and https://montreal.ca/articles/carte-acces-montreal-offres-et-rabais-exclusifs-5990

Endpoints

  • GET /data/raw - returns the raw JSON records
  • GET /data/ - returns localized data for language en or fr (e.g. /data/en)

Run locally

Make sure the Rust toolchain is installed and then run:

cargo run

To run tests use:

cargo test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages