Thread: [SailfishOS] Pure Maps
View Single Post
olf's Avatar
Posts: 305 | Thanked: 1,246 times | Joined on Aug 2015
#732
Thanks @rinigus, your questions lead me to fully understand this issue, so I will file one at Github.

Originally Posted by rinigus View Post
[...]
I tested the search for "Vorm Baum 6" and it actually gave me a correct hit on the desktop. I had to download europe/germany/nordrhein-westfalen for it. Which makes me wonder whether a correct region was downloaded - seems like this particular region is close to the border of map regions.
That is the correct map and exactly the same result as on my "Jolla 1 old", which only has this single map installed for testing (because it is big and thus allowed for testing medium-sized routes across it).

Would you mind to check the output for http://localhost:8553/v2/search?limi...ch=Vorm+Baum+6
I deviated a bit from your suggestion:
  • Without providing a limit, the default limit of 25 hits is used, resulting in exactly the 25 "same results from a single, wrong country!" observed while testing:
    curl -o osmss-jolla1new_search-Vorm+Baum+6.txt 'http://localhost:8553/v2/search?search=Vorm+Baum+6'
  • With the limit set much higher, the address search results in 41 hits, the last one being the intended one:
    curl 'http://localhost:8553/v2/search?limit=500&search=Vorm+Baum+6' | fgrep '"admin_region":' \
    | cut -s -f 2 -d ':' | cut -s -f 2 -d '"' \
    | tee osmss-jolla1new_search-l500-Vorm+Baum+6.txt | wc -l

But a couple of other details are not looking correct to me, hence taking this to Github.

Last edited by olf; 2019-06-22 at 15:34.
 

The Following 4 Users Say Thank You to olf For This Useful Post: