none
Difference between numResults and totalResults in SearchAddressSummary RRS feed

  • Question

  • Hi!

    What is the difference between numResults and totalResults in SearchAddressSummary object?

    I get numResults = 8 and totalResults = 1647 for my query. I see 8 results of different types (like Point Address or Street Range) in json, which corresponds to numResults = 8, but what is totalResults = 1647?

    My query is 'г. Армавир ул. Ефремова д.101'


    • Edited by kndl Friday, September 13, 2019 3:25 PM
    Friday, September 13, 2019 3:24 PM

All replies

  • numResults tells you how many results were returned in the response. totalResults tells you how many results in the whole system matched the query. You can use the ofs and limit parameters to page through the first 2000 results.
    Friday, September 13, 2019 5:23 PM
  • So, there are many results with different level of precision, which is shown by total Results, but the most relevant of them are shown in numResults?
    Tuesday, September 17, 2019 7:51 AM
  • It depends on which search API you are using. For things like address search, its based on precision/score. For things like nearby poi search it is based on a combination of precision/score and distance.
    • Proposed as answer by Ricky_Brundritt Tuesday, September 17, 2019 4:38 PM
    Tuesday, September 17, 2019 4:38 PM
  • Have you had a chance to see the above response? Please let us know if you need further help. 
    Thursday, September 19, 2019 11:23 AM
    Moderator