Notwithstanding Previous Misdemeanors

    This package has been deprecated

    Author message:

    No longer supporting as we have moved to using cartodb-nodejs at https://github.com/CartoDB/cartodb-nodejs and https://github.com/realtymaps/cartodb-nodejs

    cartodb-api

    0.0.7 • Public • Published

    cartodb-api

    Dependencies 

    Builds:

    • Master: Build Status

    The main reason this library exists is because the cartodb version only seems to handle files and urls. While this library was written to handle streaming of whatever. Also this library is promised based as well.

    CLI

    cartodb-upload

    To interface with the Cartodb Import API

    cartodb-upload --f=someGeoJSON.json --k={YOUR_API_KEY} --a={YOUR_ACCOUNT}

    or streaming

    Notes:

    • As of right now only basic imports are supported. Synchronization may be implemented later.
    • Currently using upload with the sql api is sufficient for our needs.

    cat someGeoJSON.json | cartodb-upload --k={YOUR_API_KEY} --a={YOUR_ACCOUNT}

    cartodb-sql

    To interface with the Cartodb Sql API

    cartodb-sql --s="select count(*) from parcels;" --k={YOUR_API_KEY} --a={YOUR_ACCOUNT}

    To see additional options and arguments see each relative ./cli/*.coffee file.

    Plans:

    • better readme with cli and library options
    • to support missing APIS:
    • Map (anonymous maps):
    • status (to get layergroupid)
    • update / insert map
    • Import:
      • status

    Contributing

    Contributions to this project are welcome; please create an issue ticket for bugs or feature requests, and submit a PR if you have made improvements. Feature requests submitted without a quality PR may not be implemented quickly.

    Install

    npm i cartodb-api

    DownloadsWeekly Downloads

    2

    Version

    0.0.7

    License

    MIT

    Last publish

    Collaborators

    • nmccready
    • zacronos