2

If I limit the results by nominatim will they be ordered by importance? So if I set ?limit=1 will I get the match with the highest importance?

If not, how can I enforce this?

2 Answers 2

2

Yes, the results are always sorted by importance according to the code. Consequently limiting the search to one result will return the address with the highest importance.

2
  • Wow, that source code is overwhelming. Frightening even. But thank you for the answer!
    – k-nut
    Commented Nov 20, 2014 at 15:08
  • Feel free to submit patches for improving it :)
    – scai
    Commented Nov 20, 2014 at 15:10
0

Not true for 40 broad st, NY, NY, 10004. doing a limit to 1 result returns lowest importance result which happens to be completely inaccurate. Getting list of results returns accurate important address on top.

1
  • why is this post being voted for deletion? when it is true, you can search for this address in nominatim with limit = 1 and you are presented with wrong result, only if limit = 3 or greater returns result with importance .6 and it is correct result.
    – user200623
    Commented Feb 25, 2022 at 0:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.