iPhone app

Looking for the iPhone app? Check out http://movete.trabesoluciones.com

User Manual

All methods are invoked in the same way:

http://movete.trabesoluciones.net/{cityCode}/{transportMeanCode}/{service}/{method}?{parameters_array}

For example: http://movete.trabesoluciones.net/coruna/bus/distances/stop?stopCode=188

Or http://movete.trabesoluciones.net/coruna/bus/lines/list?page=1&length=10

Cities and transport means

This application supports several cities, and each of them support also several transport means.

These are the combinations currently supported:

Services

These services are currently available. All of them need cityCode and transportMeanCode to be set. For further information, read above.

Lines

count()

Returns the total amount of lines. Example of usage:

http://movete.trabesoluciones.net/coruna/bus/lines/count

list(int page, int length)

Returns a list of lines, starting in the given page and with the given length. Example of usage:

http://movete.trabesoluciones.net/coruna/bus/lines/list?page=1&length=10

show(String lineCode, Direction direction)

Returns line information and its itinerary, ordered by position. Direction is an enumerated which values are GO or RETURN. Example of usage:

http://movete.trabesoluciones.net/coruna/bus/lines/show?lineCode=100&direction=GO

stop(String stopCode, int page, int length)

Returns all lines that operate in the given stop. If the given stopCode doesn't exist, an empty list will be returned. Example of usage:

http://movete.trabesoluciones.net/coruna/bus/lines/stop?stopCode=188&page=1&length=10

Stops

count()

Returns the total amount of stops. Example of usage:

http://movete.trabesoluciones.net/coruna/bus/stops/count

list(int page, int length)

Returns a list with all stops, starting in the given page and with the given length. Example of usage:

http://movete.trabesoluciones.net/coruna/bus/stops/list?page=2&length=30

search(String terms, int page, int length)

Returns a list with all stops that match all the terms indicated, starting in the given page and with the given length. Example of usage:

http://movete.trabesoluciones.net/coruna/bus/stops/search?terms=juan%20florez&page=1&length=10

countSearch(String terms)

Returns the total amount of stops that match the given search terms. Example of usage:

http://movete.trabesoluciones.net/coruna/bus/stops/countSearch?terms=juan%20florez

show(String stopCode, Direction direction)

Returns stop information and real-time status (if available). Example of usage:

http://movete.trabesoluciones.net/coruna/bike/stops/show?stopCode=17

Distances

stop(String transportMeanCode)

Returns real-time distance information of line vehicles for the given stop. Example of usage:

http://movete.trabesoluciones.net/coruna/bus/distances/stop?stopCode=188

Error codes

You may encounter errors while using this service. When an error is raised, a code and a description will be attached.

Try it:

http://movete.trabesoluciones.net/coruna/bus/distances/stop?stopCode=1880

Below is a detailed list of all possible errors and their codes:

Object not found

Real time error

Other

Changelog

License

Permission is hereby granted, free of charge, to deal with this Service without restriction, subject to the following conditions:

Any product using this Service must be freely distributed.

THE SERVICE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SERVICE OR THE USE OR OTHER DEALINGS IN THE SERVICE.