This package has been deprecated

Author message:

Please use @furkot/import-csv instead.

furkot-import-csv

2.0.0 • Public • Published

NPM version Build Status Dependency Status

furkot-import-csv

Import CSV files into Furkot road trip planner.

Install

$ npm install --save furkot-import-csv

Usage

Use as a transform stream: pipe network responses, files etc. and listen on data event.

var furkotImportCsv = require('furkot-import-csv');
var request = require('getlet');

request('https://example.com/my.csv')
  .pipe(furkotImportCsv)
  .on('data', function(trip) {
    console.log(trip);
  });

Format

CSV files imported by Furkot are expected to have following fields:

  • name - place name; mandatory
  • lat - latitude of the place; mandatory unless address is provided
  • lon - longitude of the place; mandatory unless address is provided
  • address - place address as comma-delimited string; mandatory unless lat and lon are provided
  • url - place url; optional
  • notes - place description up to 256 characters; optional
  • pin - icon representing the place, from the list of Furkot icons; optional
  • duration - stop duration in minutes; optional

If the first line of the imported file contains the names, fields can be in any order and only mandatory ones need to be present. In the absence of the header line with field names, fields in the file have to be exactly in the order listed above.

Any text field that contains commas (specifically the address) has to be enclosed in double- quotes, e.g. "1022 William T Morrissey Boulevard, Dorchester, MA 02122, USA".

License

MIT © code42day

Package Sidebar

Install

npm i furkot-import-csv

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

7.04 kB

Total Files

4

Last publish

Collaborators

  • melitele
  • pirxpilot