Trenord Mobility Search Web Component

This is a demo of the Trenord Mobility Search Web Component.

This web component launches a search on the geOps Stops API

Every parameters of the geOps Stops API:

  • can be passed as a string attribute of the web component.
  • can be passed as an URL parameter of this page, they will be automatically apply to the web component.

The list of parameters of the geOps Stops API can be found here.

Usage example



      

      

Attributes

Events

document.getElementById('search').addEventListener('mwc:attribute', (event) => {
  console.log('Display last data received:', event.data);
});


More mobility web components

>> Usage example Map Component