steve8x8 / geotoad

Geocaching query tool written in Ruby
https://buymeacoffee.com/steve8x8
Other
28 stars 8 forks source link

Make more sense of distances for multi-centered searches #316

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 9 years ago
When running a multi-centered search (-q coord a,b:c,d:e,f), the 
relativedistance{,km} values seem to be random. They are not, in a strict 
sense, as they are parsed from the result page(s), but multiple center points 
result in different distances, of course.

In a multi-center search distances should be 
(a) invalidated completely ("N/A")
or
(b) re-calculated based on a single origin (how to specify that? the last one 
used?)
or
(c) calculate all distances relative to "my home" (how to access that?)
or ...

I'm leaving this "bug" report as a reminder. Feel free to comment.

Original issue reported on code.google.com by Steve8x8 on 10 Mar 2015 at 3:22

GoogleCodeExporter commented 9 years ago
It may make sense not to rely on GS' distance calculation at all - with a fixed 
central point, I keep seeing distances vary (by a few 10 m). No idea what's 
going on there... we should do better (any suggestions for a fast but 
sufficiently precise formula?)

Original comment by Steve8x8 on 27 Apr 2015 at 9:56

steve8x8 commented 9 years ago

What about this:

If those env variables aren't set, the behaviour won't change; no need for yet another command line option (and parsing/conversion); any drawbacks I'm overlooking?

steve8x8 commented 9 years ago

This could be enhanced:

Comments?

steve8x8 commented 9 years ago

This has been committed a while ago, and will be in 3.23.2

steve8x8 commented 8 years ago

Released with 3.24.0.

Leaving this issue open (although considered resolved) for comments and suggestions.

steve8x8 commented 8 years ago

After 3.25.0 release, closing.