Test the Node.js Client for Google Maps Services and some geofence concepts
- Nodejs
- Clone the repository
- Install all dependencies via
npm install
- Create an .env file on the root of the project and define your google maps api key there see .env.example for more details
- Run
npm start
- Run tests
npm test
- The service is exposed trough express.js on the root url of port 3000 example of test usage:
http://localhost:3000/?origin[lat]=12.1392&origin[lng]=-86.2869&destination[lat]=12.1447&destination[lng]=-86.2960&meters=300¤tLocation[lat]=12.1455¤tLocation[lng]=-86.2902&waypoints[0][lat]=12.1392&waypoints[0][lng]=-86.2869&waypoints[1][lat]=12.1538&waypoints[1][lng]=-86.2880&waypoints[2][lat]=12.1411&waypoints[2][lng]=-86.2921&waypoints[3][lat]=12.1447&waypoints[3][lng]=-86.2960
- See
src/test.js
for more detail on parameters