All Projects β†’ openplannerteam β†’ planner.js

openplannerteam / planner.js

Licence: MIT license
JavaScript library for route planning πŸš΄β€β™‚οΈπŸš‰πŸš€

Programming Languages

typescript
32286 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to planner.js

YALC
πŸ•Έ YALC: Yet Another LOD Cloud (registry of Linked Open Datasets).
Stars: ✭ 14 (-54.84%)
Mutual labels:  linked-data, linked-open-data
LinkedDataHub
The Knowledge Graph notebook. Apache license.
Stars: ✭ 150 (+383.87%)
Mutual labels:  linked-data, linked-open-data
linked-connections-server
Express based server that exposes Linked Connections.
Stars: ✭ 12 (-61.29%)
Mutual labels:  linked-data, gtfs
european-transport-operators
NOT UP-TO-DATE ANYMORE, UNMAINTAINED. CHECK european-transport-feeds INSTEAD. List of european long-distance transport operators, available API endpoints, GTFS feeds and client modules.
Stars: ✭ 47 (+51.61%)
Mutual labels:  gtfs
Processor
Ontology-driven Linked Data processor and server for SPARQL backends. Apache License.
Stars: ✭ 54 (+74.19%)
Mutual labels:  linked-data
envoke
A demo client-side application for persisting music metadata and rights to BigchainDB/IPDB.
Stars: ✭ 17 (-45.16%)
Mutual labels:  linked-data
GTFS
.NET implementation of a General Transit Feed Specification (GTFS) feed parser.
Stars: ✭ 55 (+77.42%)
Mutual labels:  gtfs
GTFS-Issues
Dokumentation und Verfolgung aktueller Probleme deutschsprachiger GTFS-DatensΓ€tze
Stars: ✭ 24 (-22.58%)
Mutual labels:  gtfs
GTFS
Public transport data in GTFS format with schemas, a data package and tests
Stars: ✭ 20 (-35.48%)
Mutual labels:  gtfs
mapnificent cities
City data repository for mapnificent.net
Stars: ✭ 49 (+58.06%)
Mutual labels:  gtfs
viziquer
Tool for Search in Structured Semantic Data
Stars: ✭ 12 (-61.29%)
Mutual labels:  linked-data
Components.js
🧩 A semantic dependency injection framework
Stars: ✭ 34 (+9.68%)
Mutual labels:  linked-data
fastgtfs
A pure Rust library that provides GTFS parsing, navigation, time table creation, and real-time network simulation.
Stars: ✭ 21 (-32.26%)
Mutual labels:  gtfs
theweekendest
Real-time New York City subway service map
Stars: ✭ 51 (+64.52%)
Mutual labels:  gtfs
go-gtfs
Load GTFS files in golang
Stars: ✭ 32 (+3.23%)
Mutual labels:  gtfs
gtfstools
General Transit Feed Specification (GTFS) Editing and Analysing Tools
Stars: ✭ 31 (+0%)
Mutual labels:  gtfs
carml
A pretty sweet RML engine, for RDF.
Stars: ✭ 74 (+138.71%)
Mutual labels:  linked-data
k8s-metadata-injection
Kubernetes metadata injection for New Relic APM to make a linkage between APM and Infrastructure data.
Stars: ✭ 19 (-38.71%)
Mutual labels:  linked-data
matcha
🍡 SPARQL-like DSL for querying in memory Linked Data Models
Stars: ✭ 18 (-41.94%)
Mutual labels:  linked-data
pyldn
A pythonic Linked Data Notifications (LDN) receiver
Stars: ✭ 13 (-58.06%)
Mutual labels:  linked-data

Planner.js: A JS library for route planning

πŸ›ΈοΈ Build Status 🚴 MIT License πŸš‰ npm version πŸš€

$ npm install plannerjs

Include it in the browser:

<script src="https://planner.js.org/js/planner-latest.js"></script>

...

<script>
  const { FlexibleTransitPlanner, Units } = PlannerJS;
</script>

Include it in your JavaScript project:

const { FlexibleTransitPlanner, Units } = require('plannerjs');

// or

import { FlexibleTransitPlanner, Units } from 'plannerjs';

Use it in both environments:

const planner = new FlexibleTransitPlanner();
planner.addConnectionSource("https://graph.irail.be/sncb/connections");
planner.addStopSource("https://irail.be/stations/NMBS");

planner.query({
  from: "http://irail.be/stations/NMBS/008812005", // Brussels North
  to: "http://irail.be/stations/NMBS/008892007", // Ghent-Sint-Pieters
  minimumDepartureTime: new Date(),
  
  walkingSpeed: 3, // KmH
  minimumWalkingSpeed: 3, // KmH
 
  maximumWalkingDistance: 200, // meters
  
  minimumTransferDuration: Units.fromMinutes(1),
  maximumTransferDuration: Units.fromMinutes(30),
  
  maximumTravelDuration: Units.fromHours(1.5),
  
  maximumTransfers: 4,
})
  .take(3)
  .on('data', (path) => {
   console.log(JSON.stringify(path, null, 4));
  })
  .on('end', () => {
    console.log('No more paths!')
  })
  .on('error', (error) => {
    console.error(error);
  });

Documentation

For further instructions, follow the documentation at https://planner.js.org/

Developing

  • Building the docs with typedoc: npm run doc
  • Testing with jest: npm test
  • Build a new browser version with npm run browser
  • Bundle the latest planner for the docs example npm run doc-bundle
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].