Comment on Introducing reitti: a selfhosted alternative to Google Timeline
danielgraf@discuss.tchncs.de 2 days agoMaybe the wording is confusing in the Readme. Reitti will try to fetch the data from a configured photon instance first, if this does not return anything and you have Geocoding services configured, it will try them. There is actually no switch for hybrid mode or only local. It depends on what is configured.
Photon Only: you have only photon configured and under Settings > Gecoding
you deleted or disable every available service.
Hybrid Mode: Photon is configured and under Settings > Geocoding
there are Services available. That es is the one I use. Having Photon with the data for Germany and all the rest is handled by Geoapify.com.
External Only: You dropped Photon from the docker-compose file and only rely on services under Settings > Geocoding
If you do not configure anything, then Reitti will skip Geocoding and only display Unknown Place.
I will update the Readme to make that clear.
Zagorath@aussie.zone 2 days ago
Ah ok thanks. This is what I was wondering.
Two follow-ups:
Can you specify multiple
COUNTRY_CODE
s? (and if so, is the methodor
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 toCOUNTRY_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 2 days 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 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.