Regional Consortium of Transportation for Madrid API wrapper
Python wrapper of Consorcio de Transportes de Madrid (CTRM) API.
This module seeks to comprise all the CTRM endpoints, using different CTRM APIs.
With this API you can request static and live (not as a streaming) for the different public transport the CTRM manages: Madrid Metro, MetroSur Metro, Cercanías Renfe, Madrid EMT buses, intercity buses, multi-transport stations (intercambiadores), and Metro Ligero. You can request information of CTRM offices and parkings.
Any kind of transport fits in the paradigm of stops and lines.
- lines: Requests relative to transport lines.
- offices: Requests relative to CTRM offices.
- stops: Requests relative to transport stops.
- others: Other relevant requests that don't fit in any of the other categories.
- constants: Useful constants to use when making requests.
- utils: Useful functions to use when making requests.
When writing line names, they're usually in upper case and have no whitespaces nor other characters like dashes or underscores. The functions in utils.utils can help you to create stop and line codes.
With the constants module you can make requests about municipalities, transport modes and office types easily.
In case your mother tongue is English and you're having trouble understanding the different transports, you might find this link helpful: https://www.crtm.es/widgets/language.json
Sometimes you'll see kmz links. kmz files are used by Google Maps or Google Earth to display a set of points or geometric figures in a map.
When the field access is greater than 0, it means the stop is adapted to people with special conditions.
When the field park is greater than 0, it means that stop has a parking.
When the field nightService or nightLinesService is greater than 0, it means that line has night service (sometimes this is called Búho, specially on bus lines).
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size citram_python_api-1.0.0-py3-none-any.whl (20.6 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size citram-python-api-1.0.0.tar.gz (13.0 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for citram_python_api-1.0.0-py3-none-any.whl