This repository contains the source files for the example I'm talking about in this blog post.
This is a sample of how to use Node.js and Spatialite for modeling and querying 3D objects in space, to be used as part of drones' routing mechanism.
The following is an example of how to call the /obstacles
REST API:
#Usage
git clone https://github.com/amiturgman/3dobstacles.git
cd 3DObstacles\src
npm install
node index.js
If you're running on Windows, you might have issues compiling the node-spatialite module. In such case, please follow this procedure:
cd node_modules
git clone https://github.com/amiturgman/node-spatialite.git
cd node-spatialite
git submodule init
git submodule update
node-gyp rebuild --msvs_version=2013