So, I am developing a new type of grocery delivery service which heavily uses mapbox on flutter and geoJSON routes.
I started off with getting a token from api.openrouteservice.org but quickly ran into rate limits and quotas, so I started exploring hosting it on a cloud provider. The provider of my choice is render.com which provides cheap docker hosting natively.
Now, the wall I have hit is configuration related. Since I got used to the api.openrouteservice.org, my code and everything is wired to those configurations and I am unable to achieve the same in the self-hosted environment.
I am running into all sorts of errors, 20XX series of errors. Sometimes, GET method is not allowed. Sometimes, profile is not available and graphs are incorrect.
Can someone give me a configuration which is actually used by the public api? I will set my own .pbf file for the region I am in.
it is a bit difficult to help here, since there seem to be a few different issues.
First,
are related to an incorrect request. Find an explanation of 20XX error codes in our backend docs. You might be able to fix some of them (e.g. 2004) by increasing the corresponding limit in your config, but the others will probably be request-dependent.
Second,
is probably an issue with your setup, not with the API. Note, that when setting up openrouteservice, only the services mentioned in our README are provided, and something like the geocoder is not.
Third,
is a configuration issue - or the profile hasn’t finished building yet.
Check the /ors/v2/health-page to see whether ors is ready, and have a look at the ors.engine.profiles-section in our backend docs on how to configure profiles.
Last, what do you mean by
?
Can you give short examples of the requests you are trying and the errors you are receiving?
For reference, this is the config used for our public car instance:
Note, that especially the paths given are related to our setup and will probably have to be changed in yours.
I did redact the statistics_provider-section, but this is only used for population on isochrones.