strikeentco / geo-nearby Goto Github PK
View Code? Open in Web Editor NEW:globe_with_meridians: Search for nearby locations without DB usage.
License: MIT License
:globe_with_meridians: Search for nearby locations without DB usage.
License: MIT License
Hi,
Currently i am just getting id and geohash as result.
If i want to get full dataset along with id and deohash then is it possible with geo-nearby?
i am getting as search result:
[
{
"i": "AABC",
"g": 3624733589598182
},
{
"i": "123dgff",
"g": 3624733589598182
}
]
I want something like:
[
{
"i": "AABC",
"g": 3624733589598182,
"name" : "test",
"model" : "aa11"
},
{
"i": "123dgff",
"g": 3624733589598182,
"name" : "123",
"model" : "aa22"
}
]
It would be great to have the option to return lat lon instead of geoHash,
Trying to use this in an offline application. Is it possible to use client-side lib?
Hello,I want to ask if .nearBy(lat, lon, distance)
syntax right or .nearBy(lon, lat, distance) because I try it the second option matched with online difference https://gps-coordinates.org/distance-between-coordinates.php ? solved it depend on arrange coordinates on dataSet.
I was seeing search results being included that were way outside the search radius, so I wrote the following code:
const db = GeoNearby.createCompactSet( [ [ 40, 90, 'abc' ] ] );
console.log(db);
const gnb = new GeoNearby(db);
const res = gnb.nearBy(45, 95, 390620);
console.log(res);
This code returns the single result. The issue is that these two points are actually 690000m apart, and so the result set should be empty!
The value 390620
is the minimum value that works. Anything lower and the result set is empty.
Using an array as the search radius makes no difference in the behavior. [250, 390620]
is still the minimum value.
can i use this package in react-native
Unable to resolve module fs
from node_modules\geo-nearby\lib\base.js
Hi,
Thank you for sharing this software.
I'd be interested to know how does it compare with other solutions such as https://github.com/arjunmehta/node-georedis in terms of speed, system resource usage and scalability?
Cheers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.