https://github.com/abdonrd/time-for-vbus-api
  
  
    Time for Vbus API wraps the WSDL service of Vitrasa for get the stops and the buses estimates in JSON format. 
    https://github.com/abdonrd/time-for-vbus-api
  
        Last synced: 7 months ago 
        JSON representation
    
Time for Vbus API wraps the WSDL service of Vitrasa for get the stops and the buses estimates in JSON format.
- Host: GitHub
- URL: https://github.com/abdonrd/time-for-vbus-api
- Owner: abdonrd
- Created: 2015-05-07T17:46:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-12T19:18:03.000Z (over 7 years ago)
- Last Synced: 2025-03-28T23:04:08.599Z (7 months ago)
- Language: Python
- Size: 234 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
README
          # Time for Vbus API
Time for Vbus API wraps the WSDL service of Vitrasa for get the stops and the
buses estimates in JSON format.
## Endpoints
* [Get all stops](#get-all-stops)
* [Get stops around](#get-stops-around)
* [Get stop](#get-stop)
* [Get stop estimates](#get-stop-estimates)
### Get all stops
``` http
GET /stops
```
Example:
``` http
GET /stops
{
    "stops": [
        {
            "number": 20,
            "name": "Abade Juan de Bastos, (C.C.Freixo)",
            "location": {
                "lng": -8.74098135187851,
                "lat": 42.1874372819504
            }
        },
        {
            "number": 40,
            "name": "Abade Juan de Bastos, 48",
            "location": {
                "lng": -8.73182995565854,
                "lat": 42.1913070501787
            }
        }
    ]
}
```
### Get stops around
``` http
GET /stops?lat=&lng=
```
Example:
``` http
GET /stops?lat=42.2260892&lng=-8.7254259
{
    "stops": [
        {
            "number": 14255,
            "name": "Pintor Colmeiro 23",
            "location": {
                "lng": -8.72577877618138,
                "lat": 42.2253189833775
            },
            "distance": 136.092
        },
        {
            "number": 2450,
            "name": "Barcelona,36",
            "location": {
                "lng": -8.72371600770132,
                "lat": 42.2259534895588
            },
            "distance": 212.8333
        }
    ]
}
```
### Get stop
``` http
GET /stops/
```
Example:
``` http
GET /stops/14255
{
    "number": 14255,
    "name": "Pintor Colmeiro 23",
    "location": {
        "lng": -8.72577877618138,
        "lat": 42.2253189833775
    }
}
```
### Get stop estimates
``` http
GET /stops//estimates
```
Example:
``` http
GET /stops/14255/estimates
{
    "buses": [
        {
            "line": "16",
            "minutes": 11,
            "route": "HISPANIDAD - COIA"
        }
    ]
}
```