Created
July 14, 2014 13:18
-
-
Save seabre/2c43fd5f9e776d19b197 to your computer and use it in GitHub Desktop.
Bicycle Parking Datasync Job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} | |
} |
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
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.