Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

emt-bus

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emt-bus

Library that works a layer over the emt API service

  • 1.0.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

EMT-library

Alt text

  • Requirements
  • How to install
  • How to use
    • Authentication
    • Select a category
    • Make a request
  • Category methods
    • Bus
    • Geo
    • Media
    • Bike
    • Parking

Requirements

Node.js >= v6

How to install

npm install emt-bus --save

How to use

Import and authenticate against the API.

var EMT = require('emt-bus').('<idClient>', '<passKey>');

Select a an API category

var bus = EMT('bus');

Finally, make the request by selecting a method that corresponds to its category

bus.getListLines({ Lines: '721', SelectDate: '09/09/1993' }).then ..

Response

🚌 Bus Methods

MethodsDescription
getCalendarGet EMT Calendar for all days and line schedules for a range of dates
getGroupsReturns every line type and their details
getListLinesReturns lines with description and groups
getNodesLinesReturns all stop identifiers and his coordinate, name, lines and directions
getRouteLinesReturns a line/s route with the vertex info to build the route and coordinates for stops and axes
getTimeTableLinesProvices information about the requested line at travel time
getTimesLinesReturns current schedules for the requested lines

🌍 Geo Methods

MethodsDescription
getArriveStopGets bus arrive info to a target stop
getGroupsReturn a list of groups
getInfoLineReturns line info in a target date
getInfoLineExtendReturns line info in a target date
getPointsOfInterestReturns a list of Points of Interest from a coordinate center with a target radius
getPointsOfInterestTypesReturns a list of Point of interest types
getStopsFromStopReturns a list of stops from a target stop with a target radius and the lines arriving to those stops.
getStopsFromXYReturns a list of stops from a coordinate with a radius and the lines arriving to those stops.
getStopsLineProvices information about the requested line at travel time.
getStreetReturns 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.
getStreetFromXYReturns a list of stops from a target coordinate.

📺 Media Methods(WIP)

MethodsDescription
getEstimatesIncidentGet estimate arrival time to stop and its related issues
getStreetRouteRequest 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
getRouteWithAlarm
getRouteWithAlarmResponse
getRoute
getRouteResponse

🚲 Bike Methods

MethodsDescription
getStationsObtiene la relación de todas las bases de Bicimad y su estado operacional.
getSingleStationsObtiene la información de una base

🅿 Parking Methods (WIP)

MethodsDescription
detailParkingN/A
detailPOIN/A
iconDescriptionN/A
infoParkingPoiN/A
listFeaturesN/A
listParkingN/A
listStreetPoisParkingN/A
listTypesPOIsN/A

Keywords

FAQs

Package last updated on 19 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc