I want to use the Google Maps geometry library within a nodejs application.
From what I can see this library is only available with the Google Maps Javascript api. Is there a way for me to do this?
Colin Goldberg
I want to use the Google Maps geometry library within a nodejs application.
From what I can see this library is only available with the Google Maps Javascript api. Is there a way for me to do this?
Colin Goldberg
you can try following modules available online
you can import whole import * as geometry from 'spherical-geometry-js'; Or import individual modules import { computeArea } from 'spherical-geometry-js'; import computeArea from 'spherical-geometry-js/compute-area';
full description can checkout here https://www.npmjs.com/package/spherical-geometry-js
You can try this, https://www.npmjs.com/package/spherical-geometry-js
This NPM package has all geometry functions.
Technically, you can download geometry code and use it offline. Or use any node.js API implimentations like this. But you should make sure that it does not violate Google policy (if you care about it).