Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No venue types in Narby Venues using OSMScout #410

Open
Talkless opened this issue Oct 24, 2022 · 9 comments
Open

No venue types in Narby Venues using OSMScout #410

Talkless opened this issue Oct 24, 2022 · 9 comments

Comments

@Talkless
Copy link
Contributor

There's no way to select (filter) wanted amenities in Nearby Venues search when using OSMScount, or at least I have no idea how to use this feature if it works.

Type is only "Any".

I can search by Name, but I can't filter gas stations, toilets, ATM's, etc and similar by type..?

P.S. I have built app as unconfined in Ubuntu Touch, so DBus mediation should not be a problem if it uses DBus in this case?

@rinigus
Copy link
Owner

rinigus commented Oct 25, 2022

This is weird. Type should be available. It could indicate that the offline server process has not started or there is some issue with communication between it and Pure Maps. Try to check if you can see http://localhost:8553/v1/poi_types in your phone from browser.

@Talkless
Copy link
Contributor Author

This is what I get:

phablet@ubuntu-phablet:~$ wget http://localhost:8553/v1/poi_types -O-
--2022-10-25 21:43:40--  http://localhost:8553/v1/poi_types
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8553... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:8553... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/json]
Saving to: ‘STDOUT’

-                                           [<=>                                                                          ]       0  --.-KB/s               [
    "Any"
]
-                                           [ <=>                                                                         ]      14  --.-KB/s    in 0s      

2022-10-25 21:43:41 (673 KB/s) - written to stdout [14]

@rinigus
Copy link
Owner

rinigus commented Oct 27, 2022

Have you compiled OSM Scout Server or are using a distributed one?

@Talkless
Copy link
Contributor Author

Distributed from Open-Store, as it is already unconfined, I did not need to rebuilt it for UBPorts.

@rinigus
Copy link
Owner

rinigus commented Oct 28, 2022

OK, looking into the code of OSM Scout Server:

  • do you geocoder-npl-tag-aliases.json somewhere inside click package? That is the file where the tags are stored
  • which languages have you selected in OSM Scout Server settings?
  • what is your locale variable?

These are the settings and data that would determine tags loaded for you. Looks like either data or language selection and locale are not covered...

@Talkless
Copy link
Contributor Author

do you geocoder-npl-tag-aliases.json somewhere inside click package?

$ find /opt/click.ubuntu.com/osmscout-server.jonnius/current/ -name geocoder-npl-tag-aliases.json
/opt/click.ubuntu.com/osmscout-server.jonnius/current/usr/share/osmscout-server/data/geocoder-npl-tag-aliases.json

cat geocoder-npl-tag-aliases.json | jq ".alias2tag | keys" gives me:

[
  "af",
  "ar",
  "br",
  "ca",
  "cs",
  "de",
  "de_at",
  "en",
  "es",
  "et",
  "eu",
  "fa",
  "fi",
  "fr",
  "gl",
  "hr",
  "hu",
  "ia",
  "is",
  "it",
  "ja",
  "mk",
  "nl",
  "no",
  "pl",
  "ps",
  "pt",
  "ru",
  "sk",
  "sl",
  "sv",
  "uk",
  "vi"
]

which languages have you selected in OSM Scout Server settings?

Only "lt" (Lithuanian).

what is your locale variable?

$ locale
LANG=lt_LT.UTF-8
LANGUAGE=lt
LC_CTYPE="lt_LT.UTF-8"
LC_NUMERIC=lt_LT.UTF-8
LC_TIME=lt_LT.UTF-8
LC_COLLATE="lt_LT.UTF-8"
LC_MONETARY=lt_LT.UTF-8
LC_MESSAGES="lt_LT.UTF-8"
LC_PAPER=lt_LT.UTF-8
LC_NAME=lt_LT.UTF-8
LC_ADDRESS=lt_LT.UTF-8
LC_TELEPHONE=lt_LT.UTF-8
LC_MEASUREMENT=lt_LT.UTF-8
LC_IDENTIFICATION=lt_LT.UTF-8
LC_ALL=

Since I don't see lt in geocoder-npl-tag-aliases.json, that's the reason Venues feature fails?

Maybe it could just fallback to international en if language selected does not have mappings?

@rinigus
Copy link
Owner

rinigus commented Oct 31, 2022

Yes, exactly. That's a reason it fails in your case. Try to add English to OSM Scout Server settings and see if it improves the situation. Not sure I should enable en as universal fallback. There should be a way for users to chose the one that works.

@Talkless
Copy link
Contributor Author

Talkless commented Nov 1, 2022

Yes, if I enable en it starts to work.

Maybe it's worth to show warning in OSM Scout Server if there's no aliases are available for that language?

@rinigus rinigus transferred this issue from rinigus/pure-maps Nov 6, 2022
@rinigus
Copy link
Owner

rinigus commented Nov 6, 2022

I moved the issue to OSM Scout Server repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants