[Howto] Connect to Photon via Geocoding Service #249
|
I spent some time last night trying to get my local photon instance to work, and for anyone else that needs it, this is what worked for me. http://photon:2322/reverse?lat={lat}&lon={lng} I have photon and reitti on the same docker network, so I just used the container name and the port it listens on. |
Replies: 2 comments 1 reply
|
Ah you added that to the Geocoding Services. That should also work. The provided photon instance in the compose file is normally configured over this env variable. https://github.com/dedicatedcode/reitti/blob/5f74de06aad07ea09ac3d3069f41ac69f71e0c87/docker-compose.yml#L14C1-L15C42 This then prioritizes your Photon instance before any other GeoCoding Service is called |
|
I have the env variable, but it didnt work, to be fair, i did just have it set tp http://photon:2322 i'll make that change in the docker env. Just thorught it might be useful for someone else if they were looking for the configuration. |
I have the env variable, but it didnt work, to be fair, i did just have it set tp http://photon:2322 i'll make that change in the docker env. Just thorught it might be useful for someone else if they were looking for the configuration.