Skip to content

niettadesantis/webcomp-publictransport

 
 

Repository files navigation

ROUTEPLANNER

CSS styles are transpiled using Sass.

We are using Webpack for the bundle creation.

Getting Started

Follow the instruction here below for the development instructions.

Prerequisites

What things you need to install the software and how to install them:

  • Node (global)
  • Yarn (global)

Installing

A step by step series of examples that tell you how to get a development env running

Install yarn project's dependencies

yarn

Development

Start the dev server with

yarn start

Production

Build the widget with the production config of Webpack:

yarn build

The destination for the resulting code will be the dist folder, located at the root of the project.

API Keys

Here maps needs an API key that has to be set in the env variable HERE_API_KEY which is set through the definePlugin

The EFA/STA api doesn't require API keys.

Attributes

Attribute name Description Example Notes
destination coordinates of the destination in the following format: "longitude:latitude" destination="11.1604034:46.6684672" the longitude:latitude format is the opposite of what you can find on many websites, including google maps that uses the latitude, longitude format
destination-name display name of the destination destination-name="Terme di Merano, Merano"
disable-car if present it disables the HERE maps car routing integration
language two letter key for the language to be used language=de if omitted the widget will use the language of the browser (navigator.language[?s]) if supported. Fallback is en
attribution Attribution text for the tiles, can contain html
tiles-url Url for the tiles, see https://leafletjs.com/reference-1.6.0.html#tilelayer

Authors

  • Luca Fedrizzi - Initial work - fedriz
  • Nicolò Pretto - more development - npretto

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 50.5%
  • CSS 47.3%
  • HTML 1.9%
  • Other 0.3%