This repository contains scripts that convert data from the Map Warper instance at the Leventhal Map & Education Center at the Boston Public Library (LMEC) to the Allmaps API format.
Source data:
Conversion:
npm install
npm run gcps
npm run manifests
Resulting files:
These files can be uploaded to the Allmaps API using the following commands. To run them, first install HTTPie and jq.
jq -s < ./data/manifests.ndjson | http POST http://dev.api.allmaps.org/maps
jq -s < ./data/manifests.ndjson | http POST http://dev.api.allmaps.org/manifests
Note: these API calls are currently for internal use only.