Comment on Introducing reitti: a selfhosted alternative to Google Timeline
Zagorath@aussie.zone 1 day agoIf you do not configure anything, then Reitti will skip Geocoding and only display Unknown Place.
Ah ok thanks. This is what I was wondering.
Two follow-ups:
Can you specify multiple COUNTRY_CODE
s? (and if so, is the method
environment: - COUNTRY_CODE=country_one - COUNTRY_CODE=country_two
or
environment: - COUNTRY_CODE=[country_one, country_two]
or something else?)
And is this something that can seemlessly be retroactively changed? For example, if I set COUNTRY_CODE=au
and it works fine for Australia, but then I move to NZ, can I add (assuming the answer to my first question is yes) or change to COUNTRY_CODE=nz
and have all the NZ locations work on the already-recorded data, even if I made that change to my configuration after I had been in NZ for a few months?
danielgraf@discuss.tchncs.de 1 day ago
Good 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 1 day 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 1 day 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 1 day 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.