View Single Post
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#407
Originally Posted by ralooyar View Post
I just started with PoorMaps and OSM Scout Server and I like it!

In order to analyse my POI problem, I encountered the following issue:

The GitHub Readme says:


But if I enter this URL in Firefox on my Sailfish X while OSM Scout Server is running, all I get is: "Error while listing available POI types"
In OSM Scout Server Event-Log, I see: "Database is not open, cannot list POI types"

Test-environment:
  • PoorMap can search for POI in OSM Scout Server
  • I have downloaded the map: "Europe / Germany / Bayern" (with the "Default" profile)
  • Languages is set to: "de"
  • I use OSM Scout Server 1.3.0-1 from Jolla Store
Its a bug. I think you are the first user trying to access it, and this is after just a bit of more than a year of development. It has been broken for anyone not using the original libosmscout backend. To get the list for the default profile, you would have to open SQLite database that is in Maps folder, under geocoder-nlp/europe-germany-bayerngeonlp-primary.sqlite and run

open database:
Code:
sqlite3 geocoder-nlp/europe-germany-bayerngeonlp-primary.sqlite
in sqlite3 shell:
Code:
select name from type order by name;
The names of the types are searched for using substring search. Before that, your query is normalized by libpostal. So, when you search for "ATM", its first normalized to "atm" and later would hit "amenity_atm".

I am working now on Mapbox GL styles/import, when its finished I was planning to look into geocoding and update libpostal to newer version. But that may take some time - I may have to fix some yet unknown bugs of Mapbox GL widget before.

Last edited by rinigus; 2017-12-30 at 21:09. Reason: add command for opening database
 

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