Nondeterministic Palindrome Machine
    Wondering what’s next for npm?Check out our public roadmap! »

    turf-arc

    1.0.0 • Public • Published

    turf-arc

    build status

    Calculate great circles routes as lines

    turf.arc(from, to, properties, npoints, options.offset)

    Calculate great circles routes as lines

    Parameters

    parameter type description
    from Object source point feature
    to Object destination point feature
    properties Object line feature properties
    npoints Number number of points
    options.offset Number offset from dateline in degrees

    Example

    var arc = require('turf-arc');
    var from = { type: 'Point', coordinates: [-122, 48] };
    var to = { type: 'Point', coordinates: [-77, 39] };
    var line = arc(from, to, { 'name': 'Seattle to DC' }, 100, { offset: 10 });
    //=line

    Returns Object, arc line feature

    Installation

    Requires nodejs.

    $ npm install turf-arc

    Tests

    $ npm test

    Install

    npm i turf-arc

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    BSD-2-Clause

    Last publish

    Collaborators

    • avatar