Incorrect results if not specifying nativeGeo when the redis server supports native geo command
See original GitHub issueHi,
I am using redis server 3.2.3 which supports native geo command.
I found that if I call nearby()
function with the following options, the results will be very limited (I guess the unit used isn’t correct)
{
withCoordinates: true,
withDistances: true,
units: 'mi',
accurate: true
}
My peer uses old redis server (3.0.7), it works fine with the same code. Then I tried to append nativeGeo: true
on initialization, everything goes well. But my server doesn’t support native geo command, it will be great and better let the lib determine whether to use native command.
Thanks :]
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
node-georedis/README.md at master - GitHub
Sort, limit, and get location and distance information of nearby query results. Defaults to use native Redis geo commands if available (means extra...
Read more >GEOADD - Redis
The command will report an error when the user attempts to index coordinates outside the specified ranges. Note: there is no GEODEL command...
Read more >Spring Data Redis
The Spring Data Redis project applies core Spring concepts to the development of solutions by using a key-value style data store.
Read more >Configuring Redis - GitLab Documentation
Setting up a Redis-only server using Omnibus GitLab. If you'd like to set up Redis ... Google Cloud Memorystore does not support the...
Read more >Redis - Laravel - The PHP Framework For Web Artisans
When defining a Redis transaction, you may not retrieve any values from the Redis connection. Remember, your transaction is executed as a single,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@seoker I’ve address this in the latest release, 3.1.1.
Published to npm. I went with option 2 from above. A command queue is created and drained upon detection of the right interface.
This makes sense. I’m realizing this is a major bug and it’s not an easy problem to solve, but there are two things I can do:
ready
orinitialized
event. That can be used to know when to start using the module. Not the most intuitive or convenient solution.Anyway, I’ll give it a go soon.
Thanks!