Wikiroutes API

Wikiroutes Route Planner API provides real-time, crowdsourced public transportation data for efficient route planning and nearby stop information. With seamless integration and extensive city coverage, it enables accurate and user-friendly transit navigation for applications and services worldwide. 🚍🌍

# Wikiroutes Route Planner API

## Introduction

Integrate the Wikiroutes Route Planner API into your applications to deliver seamless public transportation navigation. This API is tailored to offer optimized transit routes and nearby stop information, leveraging real-time and crowdsourced data from active commuters. It is an ideal solution for navigation systems, travel assistance applications, and any project centered around public transit accessibility.

## Features

- **Dynamic Route Optimization**: Determine the most efficient transit routes between two locations using constantly updated, user-contributed data.
- **Customizable Time Settings**: Define departure or arrival times to personalize trip planning according to user preferences.
- **Transfer Adjustments**: Specify the maximum number of transfers allowed to tailor the routing results.
- **Community-Driven Accuracy**: Gain insights from daily commuters, ensuring the most relevant and up-to-date travel information.
- **Straightforward Integration**: Designed with simplicity in mind, the API provides well-documented endpoints that facilitate quick implementation.

## New Endpoints

- **GET /stopsInRadius**: Retrieves a list of upcoming departures from transit stops within a defined radius of the specified coordinates.
- **GET /nextDepartures**: Returns real-time departure information from stops in the vicinity of a given location.

## Coverage

### Supported Regions and Cities

| Country | Total Cities | Major Cities Covered |
|---------|-------------|----------------------|
| Argentina | 14 | Buenos Aires, Rosario |
| Armenia | 2 | Yerevan |
| Australia | 28 | Adelaide, Canberra, Melbourne, Sydney |
| Austria | 10 | Graz, Innsbruck, Linz, Salzburg, Vienna |
| Azerbaijan | 8 | Baku, Sumqayit |
| Belarus | 156 | Asipovichy, Babruysk, Baranovichy, Berezino, Borisov, Brest, Minsk, Mogilev, Vitebsk, and more... |
| Belgium | 4 | Antwerp, Brussels |
| Bosnia and Herzegovina | 4 | Sarajevo |
| Brazil | 61 | Rio de Janeiro, Sao Paulo, Sao Luis, and more... |
| Bulgaria | 15 | Plovdiv, Sofia, Varna |
| Canada | 7 | Calgary, Edmonton, Montreal, Ottawa, Toronto, Vancouver |
| Canary Islands | 4 | Santa Cruz de Tenerife |
| Chile | 5 | Santiago, Valparaiso |
| China | 16 | Beijing, Shanghai |
| Croatia | 7 | Split, Zagreb |
| Cyprus | 3 | Limassol, Nicosia |
| Czech Republic | 37 | Brno, Karlovy Vary, Ostrava, Prague, Usti nad Labem, Zlin |
| Estonia | 47 | Tallinn, Tartu, Parnu, Narva, and more... |
| Finland | 35 | Espoo, Helsinki, Joensuu, Tampere, Turku, Vantaa |
| France | 33 | Aix-les-Bains, Annecy, Grenoble, Lyon, Marseille, Nice, Paris, Toulouse |
| Germany | 86 | Berlin, Munich, Frankfurt, Dortmund, and more... |
| Greece | 11 | Athens, Thessaloniki |
| Hong Kong | 2 | Hong Kong |
| Hungary | 20 | Budapest, Debrecen |
| India | 21 | Bengaluru, Mumbai, Pune |
| Indonesia | 40 | Jakarta, Surabaya, Bandung, and more... |
| Italy | 35 | Milan, Rome |
| Japan | 28 | Tokyo, Ichihara |
| Kazakhstan | 42 | Almaty, Nur-Sultan, Shymkent, and more... |
| Kyrgyzstan | 10 | Bishkek |
| Latvia | 40 | Riga, Liepaja, Daugavpils, and more... |
| Lithuania | 37 | Vilnius, Kaunas, Klaipeda, and more... |
| Luxembourg | 1 | Luxembourg |
| Malaysia | 32 | Kuala Lumpur, Georgetown, Johor Bahru, and more... |
| Mexico | 15 | Mexico City, Cuernavaca |
| Moldova | 10 | Chisinau, Beltsy |
| Netherlands | 7 | Amsterdam |
| New Zealand | 3 | Wellington |
| Norway | 8 | Oslo |
| Peru | 31 | Lima, Arequipa, Cusco, and more... |
| Poland | 219 | Warsaw, Krakow, Wroclaw, and more... |
| Portugal | 8 | Porto, Braga, Gondomar |
| Romania | 38 | Bucharest, Cluj-Napoca, Brasov, and more... |
| Russia | 1686 | Moscow, Saint Petersburg, Novosibirsk, and numerous others... |
| Serbia | 13 | Belgrade, Novi Sad, Nis, and more... |
| Singapore | 1 | Singapore |
| Slovakia | 13 | Bratislava, Kosice, Presov, and more... |
| South Africa | 2 | Cape Town |
| Spain | 40 | Madrid, Barcelona, Valencia, and more... |
| Sweden | 47 | Stockholm, Uppsala, Eskilstuna, and more... |
| Switzerland | 22 | Zurich, Lausanne |
| Turkey | 8 | Istanbul, Ankara, Izmir, and more... |
| Ukraine | 147 | Kiev, Odessa, Kharkiv, and more... |
| United Arab Emirates | 3 | Dubai |
| United Kingdom | 43 | London, Manchester, Edinburgh, and more... |
| USA | 64 | New York, Los Angeles, Chicago, Houston, San Francisco, and more... |
| Uzbekistan | 14 | Tashkent, Samarkand |
| Vietnam | 20 | Hanoi, Ho Chi Minh City |

## Conclusion

Leverage the power of Wikiroutes Route Planner API to enhance public transit navigation within your applications. With real-time data, seamless integration, and extensive city coverage, this API ensures efficient, user-friendly travel planning for individuals worldwide.

API Documentation

Endpoints


This endpoint returns optimized public transport routes between a given origin and destination. Users can specify departure and arrival times, as well as the number of allowed transfers.



                                                                            
GET https://zylalabs.com/api/6155/wikiroutes+api/8498/get+public+transport+routes
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"routes":[{"id":"C0","duration":1440,"transfers":1,"sections":[{"id":"C0-S0","type":"pedestrian","actions":[{"action":"depart","duration":0,"instruction":"Depart from Starting Point.","length":0,"offset":0},{"action":"arrive","duration":0,"instruction":"Arrive at Крестовский остров.","length":0,"offset":0}],"travelSummary":{"duration":60,"length":59},"departure":{"time":"2025-01-20T12:34:00","place":{"name":"","type":"place","location":{"lat":59.971326,"lng":30.259275},"id":""}},"arrival":{"time":"2025-01-20T12:35:00","place":{"name":"Крестовский остров","description":"Морской пр., 45","type":"station","location":{"lat":59.971733,"lng":30.25947},"id":"11311"}},"polyline":"yc`mJo_uwDoAe@","transport":{"mode":"pedestrian"}},{"id":"C0-S1","type":"transit","actions":[{"action":"depart","duration":0,"instruction":"Depart from Крестовский остров.","length":0,"offset":0},{"action":"arrive","duration":0,"instruction":"Arrive at Адмиралтейская.","length":0,"offset":0}],"travelSummary":{"duration":540,"length":6069},"departure":{"time":"2025-01-20T12:35:00","place":{"name":"Крестовский остров","description":"Морской пр., 45","type":"station","location":{"lat":59.971733,"lng":30.25947},"id":"11311"}},"arrival":{"time":"2025-01-20T12:44:00","place":{"name":"Адмиралтейская","description":"Кирпичный пер., 1 / Малая Морская ул., 4","type":"station","location":{"lat":59.93606,"lng":30.314888},"id":"27231"}},"polyline":"kf`mJu`uwDbNoc@xDkSdVyfB~CqTxD_LvJ_GPCp[}DdLm@`GhBdEtGXZY[rRzUbGlEbCfArH_@bHmHzWeq@bGgVlC{XxCkd@lFw^","transport":{"mode":"subway","headsign":"Шушары","shortName":"Линия 5 (Фрунзенско-Приморская)","color":"#771D7F","name":"Линия 5 (Фрунзенско-Приморская)"},"intermediateStops":[{"departure":{"time":"2025-01-20T12:38:00","place":{"name":"Чкаловская","description":"Большая Зеленина ул., 12","type":"station","location":{"lat":59.960982,"lng":30.29201},"id":"26385"}}},{"departure":{"time":"2025-01-20T12:40:00","place":{"name":"Спортивная","description":"пр. Добролюбова, 20м","type":"station","location":{"lat":59.951884,"lng":30.291131},"id":"27236"}}}],"agency":{"id":"21","name":"ГУП \"Петербургский метрополитен\"","website":"https://wikiroutes.info"}},{"id":"C0-S2","type":"pedestrian","actions":[{"action":"depart","duration":0,"instruction":"Depart from Адмиралтейская.","length":0,"offset":0},{"action":"arrive","duration":0,"instruction":"Arrive at Станция метро \"Адмиралтейская\".","length":0,"offset":0}],"travelSummary":{"duration":180,"length":175},"departure":{"time":"2025-01-20T12:44:00","place":{"name":"Адмиралтейская","description":"Кирпичный пер., 1 / Малая Морская ул., 4","type":"station","location":{"lat":59.93606,"lng":30.314888},"id":"27231"}},"arrival":{"time":"2025-01-20T12:47:00","place":{"name":"Станция метро \"Адмиралтейская\"","description":"Большая Морская улица, 16","type":"station","location":{"lat":59.935438,"lng":30.316848},"id":"78323"}},"polyline":"kgylJa{_xDzBgK","transport":{"mode":"pedestrian"}},{"id":"C0-S3","type":"transit","actions":[{"action":"depart","duration":0,"instruction":"Depart from Станция метро \"Адмиралтейская\".","length":0,"offset":0},{"action":"arrive","duration":0,"instruction":"Arrive at Литейный проспект.","length":0,"offset":0}],"travelSummary":{"duration":420,"length":1796},"departure":{"time":"2025-01-20T12:50:00","place":{"name":"Станция метро \"Адмиралтейская\"","description":"Большая Морская улица, 16","type":"station","location":{"lat":59.935438,"lng":30.316848},"id":"78323"}},"arrival":{"time":"2025-01-20T12:57:00","place":{"name":"Литейный проспект","description":"Невский просп., 45","type":"station","location":{"lat":59.932654,"lng":30.346915},"id":"13130"}},"polyline":"scylJwf`xDgDgDEEGCt@aM?A~Bs_@vDum@`AiO`B{W`Eqo@","transport":{"mode":"bus","headsign":"Екатерининский проспект","shortName":"22","name":"22"},"intermediateStops":[{"departure":{"time":"2025-01-20T12:52:00","place":{"name":"Станция метро \"Невский проспект\"","description":"-","type":"station","location":{"lat":59.935392,"lng":30.325098},"id":"31085"}}},{"departure":{"time":"2025-01-20T12:54:00","place":{"name":"Станция метро \"Гостиный двор\"","description":"Невский проспект, 35","type":"station","location":{"lat":59.934463,"lng":30.332565},"id":"33474"}}},{"departure":{"time":"2025-01-20T12:56:00","place":{"name":"Дворец творчества юных","description":"Невский просп., 39","type":"station","location":{"lat":59.933646,"lng":30.339149},"id":"14703"}}}],"agency":{"id":"19","name":"СПб ГУП \"Пассажиравтотранс\" (Автобусный парк № 6 и Автобусный парк № 7)","website":"https://wikiroutes.info"}},{"id":"C0-S4","type":"pedestrian","actions":[{"action":"depart","duration":0,"instruction":"Depart from Литейный проспект.","length":0,"offset":0},{"action":"arrive","duration":0,"instruction":"Arrive at Destination Point.","length":0,"offset":0}],"travelSummary":{"duration":60,"length":84},"departure":{"time":"2025-01-20T12:57:00","place":{"name":"Литейный проспект","description":"Невский просп., 45","type":"station","location":{"lat":59.932654,"lng":30.346915},"id":"13130"}},"arrival":{"time":"2025-01-20T12:58:00","place":{"name":"","type":"place","location":{"lat":59.933005,"lng":30.345936},"id":""}},"polyline":"arxlJgcfxDgAbE","transport":{"mode":"pedestrian"}}]},{"id":"C1","duration":1440,"transfers":1,"sections":[{"id":"C1-S0","type":"pedestrian","actions":[{"action":"depart","duration":0,"instruction":"Depart from Starting Point.","length":0,"offset":0},{"action":"arrive","duration":0,"instruction":"Arrive at Крестовский остров.","length":0,"offset":0}],"travelSummary":{"duration":60,"length":59},"departure":{"time":"2025-01-20T12:29:00","place":{"name":"","type":"place","location":{"lat":59.971326,"lng":30.259275},"id":""}},"arrival":{"time":"2025-01-20T12:30:00","place":{"name":"Крестовский остров","description":"Морской пр., 45","type":"station","location":{"lat":59.971733,"lng":30.25947},"id":"11311"}},"polyline":"yc`mJo_uwDoAe@","transport":{"mode":"pedestrian"}},{"id":"C1-S1","type":"transit","actions":[{"action":"depart","duration":0,"instruction":"Depart from Крестовский остров.","length":0,"offset":0},{"action":"arrive","duration":0,"instruction":"Arrive at Адмиралтейская.","length":0,"offset":0}],"travelSummary":{"duration":540,"length":6069},"departure":{"time":"2025-01-20T12:30:00","place":{"name":"Крестовский остров","description":"Морской пр., 45","type":"station","location":{"lat":59.971733,"lng":30.25947},"id":"11311"}},"arrival":{"time":"2025-01-20T12:39:00","place":{"name":"Адмиралтейская","description":"Кирпичный пер., 1 / Малая Морская ул., 4","type":"station","location":{"lat":59.93606,"lng":30.314888},"id":"27231"}},"polyline":"kf`mJu`uwDbNoc@xDkSdVyfB~CqTxD_LvJ_GPCp[}DdLm@`GhBdEtGXZY[rRzUbGlEbCfArH_@bHmHzWeq@bGgVlC{XxCkd@lFw^","transport":{"mode":"subway","headsign":"Шушары","shortName":"Линия 5 (Фрунзенско-Приморская)","color":"#771D7F","name":"Линия 5 (Фрунзенско-Приморская)"},"intermediateStops":[{"departure":{"time":"2025-01-20T12:33:00","place":{"name":"Чкаловская","description":"Большая Зеленина ул., 12","type":"station","location":{"lat":59.960982,"lng":30.29201},"id":"26385"}}},{"departure":{"time":"2025-01-20T12:35:00","place":{"name":"Спортивная","description":"пр. Добролюбова, 20м","type":"station","location":{"lat":59.951884,"lng":30.291131},"id":"27236"}}}],"agency":{"id":"21","name":"ГУП \"Петербургский метрополитен\"","website":"https://wikiroutes.info"}},{"id":"C1-S2","type":"pedestrian","actions":[{"action":"depart","duration":0,"instruction":"Depart from Адмиралтейская.","length":0,"offset":0},{"action":"arrive","duration":0,"instruction":"Arrive at Станция метро \"Адмиралтейская\".","length":0,"offset":0}],"travelSummary":{"duration":180,"length":175},"departure":{"time":"2025-01-20T12:39:00","place":{"name":"Адмиралтейская","description":"Кирпичный пер., 1 / Малая Морская ул., 4","type":"station","location":{"lat":59.93606,"lng":30.314888},"id":"27231"}},"arrival":{"time":"2025-01-20T12:42:00","place":{"name":"Станция метро \"Адмиралтейская\"","description":"Большая Морская улица, 16","type":"station","location":{"lat":59.935438,"lng":30.316848},"id":"78323"}},"polyline":"kgylJa{_xDzBgK","transport":{"mode":"pedestrian"}},{"id":"C1-S3","type":"transit","actions":[{"action":"depart","duration":0,"instruction":"Depart from Станция метро \"Адмиралтейская\".","length":0,"offset":0},{"action":"arrive","duration":0,"instruction":"Arrive at Литейный проспект.","length":0,"offset":0}],"travelSummary":{"duration":480,"length":1796},"departure":{"time":"2025-01-20T12:44:00","place":{"name":"Станция метро \"Адмиралтейская\"","description":"Большая Морская улица, 16","type":"station","location":{"lat":59.935438,"lng":30.316848},"id":"78323"}},"arrival":{"time":"2025-01-...
                                                                                                                                                                                                                    
                                                                                                    

Get Public Transport Routes - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/6155/wikiroutes+api/8498/get+public+transport+routes' --header 'Authorization: Bearer YOUR_API_KEY' 


    

Returns a list of public transport stops within a specified radius from a given location. This is useful for identifying nearby transit options.



                                                                            
GET https://zylalabs.com/api/6155/wikiroutes+api/8499/get+stops+in+radius
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"regionName": null, "stops": [{"stopName": "Lower Addison Gardens", "stopTypeGroup": "bus", "stopId": "528605", "stopLat": 51.502039, "stopLon": -0.213042, "stopDesc": "Holland Road, 136 (34172)", "routes": [{"routeId": "35886", "routeShortName": "49", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "49", "tripHeadsign": "Bolingbroke Grove (Stop SC)", "routeType": "bus"}, {"routeId": "35887", "routeShortName": "C1", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "C1", "tripHeadsign": "Victoria Station / Grosvenor Gardens (Stop S)", "routeType": "bus"}]}, {"stopName": "Lower Addison Gardens", "stopTypeGroup": "bus", "stopId": "528674", "stopLat": 51.502116, "stopLon": -0.213399, "stopDesc": "Holland Road, 148 (11197)", "routes": [{"routeId": "35886", "routeShortName": "49", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "49", "tripHeadsign": "White City Bus Station (Stop WG)", "routeType": "bus"}, {"routeId": "35887", "routeShortName": "C1", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "C1", "tripHeadsign": "White City Bus Station (Stop WG)", "routeType": "bus"}]}, {"stopName": "Russell Gardens (Stop Q)", "stopTypeGroup": "bus", "stopId": "528671", "stopLat": 51.500655, "stopLon": -0.211481, "stopDesc": "Holland Road, 96 (1791)", "routes": [{"routeId": "35886", "routeShortName": "49", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "49", "tripHeadsign": "White City Bus Station (Stop WG)", "routeType": "bus"}, {"routeId": "35887", "routeShortName": "C1", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "C1", "tripHeadsign": "White City Bus Station (Stop WG)", "routeType": "bus"}]}, {"stopName": "Holland Road / Upper Addison Gardens", "stopTypeGroup": "bus", "stopId": "528677", "stopLat": 51.50341, "stopLon": -0.215172, "stopDesc": "Holland Road, 141 (839)", "routes": [{"routeId": "35886", "routeShortName": "49", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "49", "tripHeadsign": "White City Bus Station (Stop WG)", "routeType": "bus"}, {"routeId": "35887", "routeShortName": "C1", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "C1", "tripHeadsign": "White City Bus Station (Stop WG)", "routeType": "bus"}]}, {"stopName": "Russell Gardens (Stop A)", "stopTypeGroup": "bus", "stopId": "528606", "stopLat": 51.500154, "stopLon": -0.210545, "stopDesc": "Holland Road, 105 (34173)", "routes": [{"routeId": "35886", "routeShortName": "49", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "49", "tripHeadsign": "Bolingbroke Grove (Stop SC)", "routeType": "bus"}, {"routeId": "35887", "routeShortName": "C1", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "C1", "tripHeadsign": "Victoria Station / Grosvenor Gardens (Stop S)", "routeType": "bus"}]}, {"stopName": "Holland Road / Upper Addison Gardens", "stopTypeGroup": "bus", "stopId": "528604", "stopLat": 51.503839, "stopLon": -0.21547, "stopDesc": "Holland Road, 145 (34171)", "routes": [{"routeId": "35886", "routeShortName": "49", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "49", "tripHeadsign": "Bolingbroke Grove (Stop SC)", "routeType": "bus"}, {"routeId": "35887", "routeShortName": "C1", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "C1", "tripHeadsign": "Victoria Station / Grosvenor Gardens (Stop S)", "routeType": "bus"}]}, {"stopName": "Royal Crescent (Stop HD)", "stopTypeGroup": "bus", "stopId": "518050", "stopLat": 51.505133, "stopLon": -0.214003, "stopDesc": "Holland Park Avenue, 171-199 (837)", "routes": [{"routeId": "35511", "routeShortName": "295", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "295", "tripHeadsign": "Clapham Junction Station / Falcon Road (Stop E)", "routeType": "bus"}, {"routeId": "35510", "routeShortName": "228", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "228", "tripHeadsign": "Central Middlesex Hospital (Stop B)", "routeType": "bus"}, {"routeId": "35513", "routeShortName": "148", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "148", "tripHeadsign": "White City Bus Station (Stop WG)", "routeType": "bus"}, {"routeId": "35508", "routeShortName": "316", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "316", "tripHeadsign": "White City Bus Station (Stop WG)", "routeType": "bus"}, {"routeId": "35495", "routeShortName": "N207", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "N207", "tripHeadsign": "Belmont Road (Stop D)", "routeType": "bus"}, {"routeId": "38219", "routeShortName": "Oxford Tube", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "Oxford Tube", "tripHeadsign": "Gloucester Green Bus Station (Bay 3)", "routeType": "bus"}, {"routeId": "35888", "routeShortName": "31", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "31", "tripHeadsign": "White City Bus Station (Stop WG)", "routeType": "bus"}, {"routeId": "35360", "routeShortName": "94", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "94", "tripHeadsign": "Acton Green (Stop V)", "routeType": "bus"}]}, {"stopName": "Royal Crescent (Stop HJ)", "stopTypeGroup": "bus", "stopId": "518002", "stopLat": 51.505302, "stopLon": -0.213844, "stopDesc": "Holland Park Avenue, 180 (836)", "routes": [{"routeId": "35510", "routeShortName": "228", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "228", "tripHeadsign": "Chippenham Road / Shirland Road (Stop MR)", "routeType": "bus"}, {"routeId": "35513", "routeShortName": "148", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "148", "tripHeadsign": "Denmark Hill / Camberwell Green (Stop P)", "routeType": "bus"}, {"routeId": "35360", "routeShortName": "94", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "94", "tripHeadsign": "Charles II Street (Stop U)", "routeType": "bus"}, {"routeId": "35495", "routeShortName": "N207", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "N207", "tripHeadsign": "Bloomsbury Square (Stop F)", "routeType": "bus"}, {"routeId": "38219", "routeShortName": "Oxford Tube", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "Oxford Tube", "tripHeadsign": "Green Line Coach Station (Stop 10)", "routeType": "bus"}, {"routeId": "35888", "routeShortName": "31", "routeLongName": null, "routeColor": null, "routeTextColor": null, "name": "31", "tripHeadsign": "Camden Town Station (Stop Z1)", "routeType": "bus"}]}]}
                                                                                                                                                                                                                    
                                                                                                    

Get Stops in Radius - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/6155/wikiroutes+api/8499/get+stops+in+radius' --header 'Authorization: Bearer YOUR_API_KEY' 


    

Retrieves the next available departures from nearby transit stops based on the user’s location and search radius.



                                                                            
GET https://zylalabs.com/api/6155/wikiroutes+api/8500/get+next+departures
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"requestTime": 1737378060, "stopDepartures": [{"stopId": "521997", "stopName": "Victoria Park (Stop MM)", "stopLat": 51.606784, "stopLon": -0.185735, "departureList": [{"routeId": "36212", "routeShortName": "13", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Victoria Bus Station (Stop A)", "departureTime": "13:02:00", "date": "2025-01-20"}, {"routeId": "36212", "routeShortName": "13", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Victoria Bus Station (Stop A)", "departureTime": "13:08:00", "date": "2025-01-20"}, {"routeId": "35509", "routeShortName": "460", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Pound Lane (Stop WU)", "departureTime": "13:10:00", "date": "2025-01-20"}, {"routeId": "36583", "routeShortName": "125", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Colindale Station", "departureTime": "13:10:00", "date": "2025-01-20"}, {"routeId": "36212", "routeShortName": "13", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Victoria Bus Station (Stop A)", "departureTime": "13:14:00", "date": "2025-01-20"}, {"routeId": "36212", "routeShortName": "13", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Victoria Bus Station (Stop A)", "departureTime": "13:20:00", "date": "2025-01-20"}, {"routeId": "36583", "routeShortName": "125", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Colindale Station", "departureTime": "13:20:00", "date": "2025-01-20"}, {"routeId": "35509", "routeShortName": "460", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Pound Lane (Stop WU)", "departureTime": "13:22:00", "date": "2025-01-20"}, {"routeId": "36212", "routeShortName": "13", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Victoria Bus Station (Stop A)", "departureTime": "13:26:00", "date": "2025-01-20"}, {"routeId": "36583", "routeShortName": "125", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Colindale Station", "departureTime": "13:30:00", "date": "2025-01-20"}, {"routeId": "36212", "routeShortName": "13", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Victoria Bus Station (Stop A)", "departureTime": "13:32:00", "date": "2025-01-20"}, {"routeId": "35509", "routeShortName": "460", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Pound Lane (Stop WU)", "departureTime": "13:34:00", "date": "2025-01-20"}, {"routeId": "36212", "routeShortName": "13", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Victoria Bus Station (Stop A)", "departureTime": "13:38:00", "date": "2025-01-20"}, {"routeId": "36583", "routeShortName": "125", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Colindale Station", "departureTime": "13:40:00", "date": "2025-01-20"}, {"routeId": "36212", "routeShortName": "13", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Victoria Bus Station (Stop A)", "departureTime": "13:44:00", "date": "2025-01-20"}, {"routeId": "35509", "routeShortName": "460", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Pound Lane (Stop WU)", "departureTime": "13:46:00", "date": "2025-01-20"}, {"routeId": "36212", "routeShortName": "13", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Victoria Bus Station (Stop A)", "departureTime": "13:50:00", "date": "2025-01-20"}, {"routeId": "36583", "routeShortName": "125", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Colindale Station", "departureTime": "13:50:00", "date": "2025-01-20"}, {"routeId": "36212", "routeShortName": "13", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Victoria Bus Station (Stop A)", "departureTime": "13:56:00", "date": "2025-01-20"}, {"routeId": "35509", "routeShortName": "460", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Pound Lane (Stop WU)", "departureTime": "13:58:00", "date": "2025-01-20"}, {"routeId": "36583", "routeShortName": "125", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Colindale Station", "departureTime": "14:00:00", "date": "2025-01-20"}, {"routeId": "36212", "routeShortName": "13", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Victoria Bus Station (Stop A)", "departureTime": "14:01:00", "date": "2025-01-20"}, {"routeId": "36212", "routeShortName": "13", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Victoria Bus Station (Stop A)", "departureTime": "14:07:00", "date": "2025-01-20"}, {"routeId": "35509", "routeShortName": "460", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Pound Lane (Stop WU)", "departureTime": "14:10:00", "date": "2025-01-20"}, {"routeId": "36583", "routeShortName": "125", "routeLongName": null, "routeDesc": null, "routeColor": null, "routeTextColor": null, "routeType": "bus", "tripHeadsign": "Colindale Station", "departureTime": "14:10:00", "date": "2025-01-20"}]}], "localDate": "2025-01-20", "localTime": "13:01:00"}
                                                                                                                                                                                                                    
                                                                                                    

Get Next Departures - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/6155/wikiroutes+api/8500/get+next+departures' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Wikiroutes API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

The Wikiroutes GTFS API provides real-time and scheduled public transport data, allowing users to find routes, stops, and next departures using geographic coordinates.

Currently, no authentication or API key is required to access public endpoints.

Use the /routes endpoint with your origin, destination, and optional parameters like departureTime or arrivalTime to get the best available route.

Yes, the /stopsInRadius endpoint allows you to search for transit stops within a specified radius from a given location.

Departure times are based on the latest GTFS data, but real-time updates depend on the availability of live transit feeds.

Check the Error Handling section. Common issues include incorrect request formatting (HTTP 400), exceeding usage limits (HTTP 429), or temporary service issues (HTTP 500).

All responses are in JSON format.

Yes, but make sure to comply with any terms of service and consider caching responses to minimize load.

You can reach out to our support team via [email protected]

The /routes endpoint returns optimized public transport routes, including details such as duration, number of transfers, and specific sections of the journey. Each route includes actions, travel summaries, and departure and arrival information.

The /nextDepartures response includes fields like stopId, stopName, stopLat, stopLon, and a list of upcoming departures with routeId, routeShortName, and departureTime, providing comprehensive details about transit options.

Users can customize requests by specifying parameters such as origin, destination, departureTime, arrivalTime, and the maximum number of transfers allowed, tailoring the route results to their preferences.

The /stopsInRadius endpoint provides a list of nearby transit stops, including stop names, types, locations (latitude and longitude), and associated routes, helping users identify available transit options in their vicinity.

The API responses are structured in JSON format, organized into key-value pairs. For example, the /routes response includes an array of routes, each containing sections with actions, travel summaries, and location details.

The Wikiroutes API relies on real-time, crowdsourced data from active commuters and public transit agencies, ensuring that the information is current and reflective of actual transit conditions.

Common use cases include integrating transit navigation into mobile apps, providing real-time departure information for web services, and enhancing travel planning tools with optimized route suggestions based on user preferences.

Users should implement error handling to manage partial or empty results gracefully. For example, if no routes are found, the application can prompt users to adjust their search parameters or notify them of limited transit options in that area.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, refer to the ‘X-Zyla-API-Calls-Monthly-Remaining’ field in the response header. For example, if your plan allows 1000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

To see the maximum number of API requests your plan allows, check the ‘X-Zyla-RateLimit-Limit’ response header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The ‘X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.


Related APIs