Socket
Socket
Sign inDemoInstall

cartodb-api

Package Overview
Dependencies
165
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cartodb-api

Simple tools interface with the cartodb APIs.


Version published
Weekly downloads
4
increased by100%
Maintainers
2
Install size
10.4 MB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 21 Aug 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc