Comment on Introducing reitti: a selfhosted alternative to Google Timeline
danielgraf@discuss.tchncs.de 2 days agoGood question, afaik you can not enter multiple countries to Photon. I was hoping it would be possible but everything i saw was it is either on country or the whole world. But maybe you can have a look here: github.com/komoot/photon That is the service we are using.
Zagorath@aussie.zone 2 days ago
I just took a really quick look at it, but under Importing data from Nominatim it says “
-country-codes
allows to filter the data to be imported by country. Set this to a comma-separated list of two-letter language codes.”That’s a different section from the Importing data from a JSON dump section, which is where it only mentions
-country-code
. But even that does seem to suggest it takes “all the parameters of an import from a Nominatim database”. So it seems like either the documentation for one of them is wrong, or both are lacking (because in fact both the singular and plural work).danielgraf@discuss.tchncs.de 2 days ago
I think this is not exposed when running the Docker container. But let me check later when i have time what happens if i put another country in that variable
danielgraf@discuss.tchncs.de 2 days ago
I looked at the docker image i am using in the docker-compose file and this only supports having a single country code. The actual reason can be found here: github.com/rtuszik/…/start-photon.sh#L341C5-L342C…
It is probably possible if you deploy photon on its own and then import the data somehow. But that is to much hassle for me, i think and hope that most of the use case is handled by the current solution. At least for most of the potential users. But I get the point if someone is traveling a lot between countries.
If there is enough demand I could maybe try to create a PR for the Docker image to handle multiple country codes.