This package has been deprecated

Author message:

Use @furkot/trip instead

furkot-trip

0.5.0 • Public • Published

furkot-trip

Adds stops to Furkot - online trip planner.

Installation

Install with npm:

$ npm install --save furkot-trip

Install with component(1):

$ component install code42day/furkot-trip

API

.plan(stops)

Redirects user to Furkot website and adds stops to an existing trip or a new trip. If user is not logged in she will be asked to sign in before selecting a trip (or creating a new one).

stops is an Array of objects with name, description, coordinates (lat, lon), url and duration (in milliseconds). Only name and coordinates are required.

var furkotTrip = require('furkot-trip');
var stops = [
  {
    name: 'Time Square',
    coordinates: {
      lat: 40.7577,
      lon: -73.9857
    }
  }, {
    name: 'Metropolitan Museum',
    coordinates: {
      lat: 40.7789,
      lon: -73.9637
    }
  }
];
var nyTrip = furkotTrip();
 
nyTrip.plan(stops);

.getUrl(stops)

Returns URL to Furkot with stops encoded in the query part. The URL will redirect user to Furkot and add stops to an existing trip or a new trip.

See how it works with Liftie.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i furkot-trip

Weekly Downloads

0

Version

0.5.0

License

MIT

Last publish

Collaborators

  • melitele
  • pirxpilot