DaniilSydorenko / haversine-geolocation

Get distances between two points or get closest position to current point. Based on the Haversine Formula
https://www.npmjs.com/package/haversine-geolocation
MIT License
23 stars 2 forks source link

Getting error on import to Node.JS #12

Open AnkitaSharma88 opened 3 years ago

AnkitaSharma88 commented 3 years ago

Hi, Using haversine-geolocation as following: const { HaversineGeolocation} = require('haversine-geolocation');

Getting the following error on server start: ReferenceError: window is not defined at Object. (XXXXXXX\node_modules\haversine-geolocation\dist\build.js:1:224)

fabio-coderun commented 1 year ago

+1