Skip to content

A RESTful API that provides coordinates and bearing of public buses in Singapore

Notifications You must be signed in to change notification settings

adithyaxx/sg-bus-locator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SG-Bus-Locator

A RESTful API that provides coordinates and bearing of public buses in Singapore

Coordinates of approaching buses in relation to bus stops along a route are collected and their bearings are calculated using the coordinates of the bus stops before and after the current position of those buses.

Usage

Request

https://sg-bus-locator.appspot.com/ ?busNo=179

Parameter Value
busNo 179 179A 199

Response

{
  "locations": [
    {
      "lat": "1.3525963333333333",
      "lng": "103.701145",
      "bearing": 322
    },
    {
      "lat": "1.3547865",
      "lng": "103.6980745",
      "bearing": 255
    },
    {
      "lat": "1.3508146666666667",
      "lng": "103.67834783333333",
      "bearing": 222
    }
  ]
}

Limitations

The API only provides information for 179, 179A and 199 as of now

Contributors

Credits

About

A RESTful API that provides coordinates and bearing of public buses in Singapore

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published