3

Is there a way to sync GeoJSON files to my cartoDB table?

If this is not yet supported, what would be the best way of implementing this feature (syncing the data frequently with the existing cartoDB table) myself?

1 Answer 1

4

It might be worthwhile looking at the CartoDB Import API. You can set up syncing a file from a URL with a simple cURL command.

Check out the documentation and the example at this link. It may help get you started down the right track.

OR

While the import API is one possible method, it looks like you can sync GeoJSON if it is hosted on the web somewhere. This method was outlined on the Fulcrum guides and can be seen here, read the section "Creating A Synced CartoDB Table".

Steps are as follows.

  1. In cartodb connect a datafile using a URL as shown below.

enter image description here

  1. Set the update frequency as shown below.

enter image description here

I used GeoJSON from Mapbox to test and can be found here http://api.tiles.mapbox.com/v3/mapbox.o11ipb8h/markers.geojson

2
  • Thanks for the answer. I already have a premium account. I wanted to check if CartoDB supports geoJSON syncing because I don't see that data type specified anywhere.
    – Irene Lee
    Commented Jun 22, 2016 at 20:53
  • @IreneL I just added an additional method which may (fingers crossed) help you out. Commented Jun 22, 2016 at 22:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.