hello! api not working http://router.project-osrm.org/
please help!
hello! api not working http://router.project-osrm.org/
please help!
what exactly you tried and what exactly happened?
I use the service and get the routes I need using the API https://project-osrm.org/docs/v5.24.0/api/# and today it stopped working. I'm trying to get a route using my coordinates http://router.project-osrm.org/route/v1/driving/13.574293600000,52.486954700000;4.304133000000,51.848996200000?overview=full&alternatives=true&steps=true&geometries=geojson&annotations=true but I get the error 504 Gateway Time-out. I'm worried and want to know when the service will work again.
Please help me or share information if you know anything. Thank you.
These timeouts are probably caused by the service being overloaded.
Please note that this is a demo server for how osrm does work but should not be used in production as it may be offline or overloaded anytime and should not be abused by too many requests (e.g. by using it in production environments).
This would be the result you should get on your example request: https://fast-routing.dev.docs.routingapi.net/osrm-result.json
Thanks for your reply. Maybe you could point me to a working service instead of a demo one? So we can use it in our production database.
To add to @Spiekerooger’s reply: and if you do use the demo server, then make sure you set a nice HTTP user agent and/or referrer that identifies your application well.
You can also always set up and run your own instance of OSRM. It’s open source software.
If you need one to use in production you will likely need to pay someone to run it as a service or setup one yourself (will be likely cheaper than using say Google services, but it will be hard to find someone volunteering to work for unspecific company or to donate compute)
The demo server should be back now.
Independently of that, the advice you have been given remains in place: do not use the demo server for anything that needs a lot of request or has any SLA requirements. Set up your own instance or pay somebody to run it for you.
@Kotangel you can either setup OSRM yourself, but please be aware of the hardware requirements depending on the world coverage you need (e.g. Luxembourg or Europe or World, a server covering the World should have a minimum of 512GB RAM, better 768GB for being sufficient for data growth in the future) or you could use a commercial third party provider that offers this as an API service.
E.g. here: GEOFABRIK // Routing with OSRM and GraphHopper or https://www.routingapi.net you would find it as a service, other providers may also offer setup consultancy.