question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Refactor LocationIndexMatch.findNClosest

See original GitHub issue

As per the discussion in #994 (and links therein), we probably need to consider the purpose of LocationIndexMatch.findNClosest, and consequently rename and refactor - at the moment it’s just a direct port from map-matching, and includes some known ‘bugs’ (which are listed as TODOs in the code). It probably won’t be used outside of map-matching, so it’s probably not an urgent fix.

@karussell - maybe you can give some direction for what you’d like to see here?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
kodonnellcommented, Mar 24, 2017

What do you mean here @kodonnell ?

The current behaviour includes features that we may remove in the more general one - specifically:

  1. if no results are found in radius, return no results. (Currently, in this case, we’ll return one from within the nine tiles even if it’s outside the radius.)
  2. (not) sorting the results - can’t remember if this is required by map-matching or not.

The first will definitely result in some differences in some cases (though as above, pretty rare, and I think it’s probably incorrect in it’s current state).

0reactions
karussellcommented, Sep 10, 2018

Closing as duplicate of #1324 (I think, if not please reopen)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Find closest match - Excel formula - Exceljet
To find the closest match in numeric data, you can use INDEX and MATCH, with help from the ABS and MIN functions. In...
Read more >
Find the Closest Match in Excel Using Formulas
Learn how to find the closest match in Excel. A simple Excel formula can be used to identify the closest match in a...
Read more >
How to find the closest match in Excel? - Tutorial - Excelkid
Learn how to find the closest match in numeric data fast using the XLOOKUP function or INDEX and MATCH combinations.
Read more >
Lookup closest match using INDEX & MATCH function
Now we will make a formula using the above functions. MATCH function will return the index of the closest match from the range....
Read more >
Closest Match in Excel (Easy Tutorial)
To find the closest match to a target value in a data column, use INDEX, MATCH, ABS and MIN in Excel. Use the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found