Skip to content
/ Vitrapp Public

A simple and restful JavaScript wrap of Vitrasa soap api - 🚧

Notifications You must be signed in to change notification settings

jenni/Vitrapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A JavaScript wrap of Vitrasa wsdl api.

🚧 under construction 🚧

🚌 VITRASA - Public transportation in Vigo

Endpoints

Get all stops

GET /stops

Example:

GET /stops/all

{
    "id": 280,
    "name": "Arquitecto Antonio Cominges, 38",
    "location": {
        "lng": -8.80731148602987,
        "lat": 42.1897563491201
    }
},
{
    "id": 290,
    "name": "Arquitecto Gomez Roman, 35",
    "location": {
        "lng": -8.8038689924564,
        "lat": 42.1899936938779
    }
},
...

Get stops nearby

GET /stops/nearby/:latitude/:longitude

Example:

GET /stops/nearby/42.215625/-8.747444/

[
    {
        "_attributes": {
            "idparada": "1320",
            "nombre": "Avda. Castelao- 87",
            "distancia": "532.5505",
            "latitud": "42.2173022236201",
            "longitud": "-8.75110475205119"
        }
    },
    {
        "_attributes": {
            "idparada": "1310",
            "nombre": "Avda. Castelao- 73",
            "distancia": "348.73",
            "latitud": "42.2177055282635",
            "longitud": "-8.74775332453754"
        }
    }
]

Get stop estimations

GET stops/:id/estimations

Example:

GET /stops/14901/estimations

[
    {
        "line": "10",
        "route": "cemiterio de teis",
        "minutes": "1",
        "distance": "624"
    },
    {
        "line": "15A",
        "route": "r. nieto - cabral",
        "minutes": "10",
        "distance": "2748"
    }
]

Get estimations by coordinates

GET /stops/location/:lat/:lng/estimations

Example:

GET /stops/location/42.2346052506693/-8.6711950590708/estimations

[
    {
        "line": "9A",
        "route": "peinador - aeroporto",
        "minutes": "4",
        "distance": "2383"
    },
    {
        "line": "9B",
        "route": "rabadeira por rinxela",
        "minutes": "23",
        "distance": "5938"
    }
]

For a python implementation visit --> Time for Vbus API

About

A simple and restful JavaScript wrap of Vitrasa soap api - 🚧

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published