Skip to content

Latest commit

 

History

History
68 lines (43 loc) · 2.16 KB

README.md

File metadata and controls

68 lines (43 loc) · 2.16 KB

api.gulur.is

Unofficial restful service for bus times in and around Reykjavík. This service is used by

/stops/

List of all stops.

Examples

/stops/{id}

Information about a specific stop and bus stop times for that particular stop.

Parameters

  • range - Predefined time ranges which are
    • day - the entire day.
    • restOfDay - past 15 minutes till the end of day.
    • now - from past 15 minutes to an hour from now.
  • from - From a certain time (ISO 8601)
  • to - To a certain time (ISO 8601)

Examples

/nearest

The nearest stops to a location.

Parameters

  • latitude - Required
  • longitude - Required
  • radius - Radius to search within (default: 500m)

Examples

/buses

Stop times for the nearest buses to a location.

Parameters

  • latitude - Required
  • longitude - Required
  • radius - Radius to search within (default: 500m)
  • range - Predefined time ranges which are
    • day - the entire day.
    • restOfDay - past 15 minutes till the end of day.
    • now - from past 15 minutes to an hour from now.
  • from - From a certain time (ISO 8601)
  • to - To a certain time (ISO 8601)

Examples