{"id":51141721,"url":"https://github.com/Lorengamboa/EMT-library","last_synced_at":"2026-07-14T07:00:53.578Z","repository":{"id":80748051,"uuid":"112027590","full_name":"Lorengamboa/EMT-library","owner":"Lorengamboa","description":"Library that simplifies the use of EMT open data API","archived":false,"fork":false,"pushed_at":"2020-07-04T18:35:06.000Z","size":62,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-15T06:54:19.390Z","etag":null,"topics":["api","emt","library","madrid","nodejs","unofficial"],"latest_commit_sha":null,"homepage":"http://opendata.emtmadrid.es","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lorengamboa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-11-25T19:03:15.000Z","updated_at":"2023-07-20T12:08:31.000Z","dependencies_parsed_at":"2023-03-12T12:08:07.526Z","dependency_job_id":null,"html_url":"https://github.com/Lorengamboa/EMT-library","commit_stats":null,"previous_names":["lorengamboa/emt-bus"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lorengamboa/EMT-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lorengamboa%2FEMT-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lorengamboa%2FEMT-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lorengamboa%2FEMT-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lorengamboa%2FEMT-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lorengamboa","download_url":"https://codeload.github.com/Lorengamboa/EMT-library/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lorengamboa%2FEMT-library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35450066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-14T02:00:06.603Z","response_time":114,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","emt","library","madrid","nodejs","unofficial"],"created_at":"2026-06-26T00:00:38.050Z","updated_at":"2026-07-14T07:00:53.572Z","avatar_url":"https://github.com/Lorengamboa.png","language":"JavaScript","funding_links":[],"categories":["Transporte y Movilidad"],"sub_categories":[],"readme":"# EMT-library\n\n![Alt text](/assets/emt-bus_logo.png \"Title\")\n\n\u003ca href=\"https://snyk.io/test/github/lorengamboa/emt-bus\"\u003e\n\u003cimg  src=\"https://snyk.io/test/github/lorengamboa/emt-bus/badge.svg\"\u003e\u003c/a\u003e\n\n+ Requirements\n+ How to install\n+ How to use\n    - Authentication\n    - Select a category\n    - Make a request\n+ Category methods\n    - Bus\n    - Geo\n    - Media\n    - Bike\n    - Parking\n\n## Requirements\n\u003e Node.js \u003e= v6\n\n## How to install\n\u003enpm install emt-bus --save\n\n## How to use\n\n**Import and authenticate against the API.**\n```javascript\nvar EMT = require('emt-bus').('\u003cidClient\u003e', '\u003cpassKey\u003e');\n```\n**Select a an API category**\n```javascript\nvar bus = EMT('bus');\n```\n**Finally, make the request by selecting a method that corresponds to its category**\n```javascript\nbus.getListLines({ Lines: '721', SelectDate: '09/09/1993' }).then ..\n```\n\n**Response**\n\u003ccode\u003e\n\u003c/code\u003e\n\n### 🚌 Bus Methods \n\n|   Methods|Description |\n| ---------|-------------|\n| getCalendar|Get EMT Calendar for all days and line schedules for a range of dates   \n| getGroups|Returns every line type and their details |\n| getListLines|Returns lines with description and groups     |\n| getNodesLines|Returns all stop identifiers and his coordinate, name, lines and directions|\n| getRouteLines| Returns a line/s route with the vertex info to build the route and coordinates for stops and axes |\n| getTimeTableLines|Provices information about the requested line at travel time|\n| getTimesLines|Returns current schedules for the requested lines|\n\n### 🌍 Geo Methods \n\n|   Methods|Description |\n| ---------|-------------|\n| getArriveStop|Gets bus arrive info to a target stop |\n| getGroups|Return a list of groups |\n| getInfoLine|Returns line info in a target date|\n| getInfoLineExtend|Returns line info in a target date|\n| getPointsOfInterest|Returns a list of Points of Interest from a coordinate center with a target radius|\n| getPointsOfInterestTypes|Returns a list of Point of interest types|\n| getStopsFromStop|Returns a list of stops from a target stop with a target radius and the lines arriving to those stops.|\n| getStopsFromXY|Returns a list of stops from a coordinate with a radius and the lines arriving to those stops.|\n| getStopsLine|Provices information about the requested line at travel time.|\n| getStreet|Returns a list of EMT nodes related to a location. All EMT locations are a group of stops  within a target radius and the lines related to each stop in the list.|\n| getStreetFromXY|Returns a list of stops from a target coordinate.|\n\n### 📺 Media Methods(WIP)\n\n|   Methods|Description |\n| ---------|-------------|\n| getEstimatesIncident| Get estimate arrival time to stop and its related issues\n| getStreetRoute|Request up to three optimal routes from one place to another using bus or walking, source and destination must be in a format known for the system, which means that should have been validated by a GetStreet call   \n| getRouteWithAlarm| |\n| getRouteWithAlarmResponse| |\n| getRoute| |\n| getRouteResponse| |\n\n### 🚲 Bike Methods \n\n|   Methods|Description |\n| ---------|-------------|\n| getStations|Obtiene la relación de todas las bases de Bicimad y su estado operacional. |\n| getSingleStations|Obtiene la información de una base |\n\n### 🅿 Parking Methods (WIP)\n\n|   Methods|Description |\n| ---------|-------------|\n| detailParking|N/A |\n| detailPOI|N/A |\n| iconDescription|N/A|\n| infoParkingPoi|N/A|\n| listFeatures|N/A|\n| listParking|N/A|\n| listStreetPoisParking|N/A|\n| listTypesPOIs|N/A|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLorengamboa%2FEMT-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLorengamboa%2FEMT-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLorengamboa%2FEMT-library/lists"}