Skip to content

Tiny REST API to translate bus stop numbers <-> stop names

License

Notifications You must be signed in to change notification settings

leppaott/hsl-stops-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hsl-stops-dns

Tiny REST API to translate bus stop numbers <-> stop names

Using HSL-Api

Deployed as a Google Cloud Function at (https://us-central1-hsl-stop-dns.cloudfunctions.net/stops) this api provides translation between bus stop numbers (ex. 4040) and bus stop names (ex. Liisankatu).

Example: In JSON:

 {"stops": "4040,Kumpula,Liisanka"}

or simply (https://us-central1-hsl-stop-dns.cloudfunctions.net/stops?stops=4040,Kumpula,Liisanka)

results in:

[
  {
    "4040": "Herttoniemi(M)"
  },
  {
    "Kumpula": "3080"
  },
  {
    "Liisanka": "2012",
    "properName": "Liisankatu"
  }
]

Where keys are search queries and values results of queries and properName where bus number query didn't quite match the full name of the stop.

About

Tiny REST API to translate bus stop numbers <-> stop names

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published