1.1.30 • Published 5 years ago

sop-vml v1.1.30

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Sop VML

Visual Machine learning for State of Place

This library runs tests against a State of Place server. Thus you must add the following username and password to server in order for tests to pass:

{username: "test", password: "testpass"}

The current production API is https://stage.stateofplace.co/sop_api/graphql, which accepts the above login

The following runs the script that downloads streetviews:

./node_modules/.bin/babel-node ./src/scripts/queryForStreetviews.js --dev -c ./config.json ./params.json --location-output-params ./locationOutputParams.json --dump-json --flatten-output

For help type: ./node_modules/.bin/babel-node ./src/scripts/queryForStreetviews.js --help

Make sure that the env variable GOOGLE_API_KEY is set to a working Google API key that is enabled for geocoding and directions. You can test your API key with these queries. They should return results https://maps.googleapis.com/maps/api/geocode/json?address=Monroe%20St%20and%2013th%20NE%2C%20Washington%2C%20DC%2C%20USA&key=YOUR_API_KEY https://maps.googleapis.com/maps/api/directions/json?destination=30.2816082%2C-97.72263489999999&mode=walking&origin=30.2814621%2C-97.72360929999999&key=YOUR_API_KEY