Skip to content

Instantly share code, notes, and snippets.

@seabre
Created July 14, 2014 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seabre/2c43fd5f9e776d19b197 to your computer and use it in GitHub Desktop.
Save seabre/2c43fd5f9e776d19b197 to your computer and use it in GitHub Desktop.
Bicycle Parking Datasync Job
{
"datasetID" : "mzz8-ifku",
"fileToPublish" : "bicycle_parking.csv",
"fileToPublishHasHeaderRow" : true,
"fileVersionUID" : 3,
"jobFilename" : "bicycle_parking.sij",
"pathToFTPControlFile" : "control.json",
"pathToSavedFile" : "bicycle_parking.sij",
"publishMethod" : "replace",
"publishViaFTP" : true
}
{
"action" : "Replace",
"csv" : { "columns" : [ "name",
"description",
"type",
"capacity",
"latitude",
"longitude"
],
"emptyTextIsNull" : true,
"encoding" : "utf-8",
"fixedTimestampFormat" : [ "ISO8601",
"MM/dd/yy",
"MM/dd/yyyy",
"dd-MMM-yyyy"
],
"floatingTimestampFormat" : [ "ISO8601",
"MM/dd/yy",
"MM/dd/yyyy",
"dd-MMM-yyyy"
],
"overrides" : { },
"quote" : "\"",
"separator" : ",",
"skip" : 0,
"syntheticLocations" : { "location_1" : { "latitude" : "latitude",
"longitude" : "longitude"
} },
"timezone" : "UTC",
"trimServerWhitespace" : true,
"trimWhitespace" : true,
"useSocrataGeocoding" : false
}
}
@seabre
Copy link
Author

seabre commented Jul 14, 2014

Dataset: https://data.chattlibrary.org/Government/Bicycle-Parking-Locations-in-the-City-of-Chattanoo/sp42-d42z

The dataset ID I'm using for this job is just a test copy of the above dataset.

@seabre
Copy link
Author

seabre commented Jul 14, 2014

Also, the documentation reads that if the columns are different, define the columns and set skip to 1 in control.json, but it doesn't really matter what I do, I still get an error about the latitude and longitude columns not being in the dataset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment