Serves queries to the geocache database. (This probably needs a better name)
See the OpenAPI document for the REST interface description.
- Install mongodb
- Install dependencies:
npm install
- Start service:
npm start
- Connect with mongodb:
mongo
- Create initial database:
use gc
- Add sample:
db.gcs.inserOne(
{
"_id":"GCTEST",
"parsed_refresh" : false,
"coord" : {
"type" : "Point",
"coordinates" : [
-113.36555,
37.051417
]
},
"coord_date" : ISODate("2020-01-01T00:00:00.000Z"),
"parsed" : {
"name" : "Test Name",
"lat" : 37.051417,
"lon" : -113.36555,
"difficulty" : 1.0,
"terrain" : 1.0,
"size" : "micro",
"hint" : "test Hint",
"type" : "traditional",
"disabled" : false,
"foundScore" : 1.0,
"owner" : "Test Owner",
"premium" : false,
"quadKey" : "0230113321122122",
"attributes" : {}
},
"parsed_date" : ISODate("2020-01-01T00:00:00.000Z")
}
);