Тёмный

Setup a Self-Hosted OpenRouteService Instance with Docker on Windows, Mac or Linux 

SyntaxByte
Подписаться 10 тыс.
Просмотров 20 тыс.
50% 1

In this video, I cover setting up your own self-hosted instance of OpenRouteService using docker. The video was filmed using Linux Mint 21 Vanessa but the same instructions can be used on Windows or Mac with minimal modifications.
Links used in the video:
OpenRouteService Github: github.com/GIScience/openrout...
OpenRouteService Examples (directions example): openrouteservice.org/dev/#/ap...{profile}/get
Geofabrik Download Server: download.geofabrik.de/

Наука

Опубликовано:

 

9 сен 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 57   
@blackjack2win
@blackjack2win Год назад
Thank you for the clear explanation! Currently deploying a small server for the calculation of some cluster algorithms and this had been a great help.
@newwinnersblues
@newwinnersblues Год назад
thank you so much for the clear explanation! So much easier to understand now and I appreciate the honesty of the f-bomb; I've said that myself while running this service
@irwinpalomo7212
@irwinpalomo7212 Год назад
ty for the "windows instructions" flawless video tutorial, thank you.
@johnyepthomi892
@johnyepthomi892 Год назад
Thank you for the content. Very helpful in getting set up and started.
@maxwu3735
@maxwu3735 Год назад
Thanks for your sharing~! I think this video can help many developers
@adgjk1
@adgjk1 Год назад
Thanks, would love to see some more videos on OpenRouteService if you have any!
@syntaxbyte
@syntaxbyte Год назад
Will definitely consider making some additional videos on openrouteservice in the future. This video appears to be more popular than expected.
@manuelli_sebastian
@manuelli_sebastian Год назад
Great tutorial, thank you.
@nelsonokosun9270
@nelsonokosun9270 Год назад
I was able to successfully deploy this. My next problem is adding the frontend. I've been on this for weeks!
@ghos001
@ghos001 7 месяцев назад
A cool feature not shown in this video is on the classic openrouteservice maps client, you can you use your own server to compute the routes as shown in this video, and then generate routes between points on the map, search, add parameters to your query through the client all on the pbf data you selected rather than through the API,
@svdm007
@svdm007 Год назад
Would be great to see a sequel covering localhost bulk isochrone generation (over 60 minutes). Any chance you will do this?
@moffia100
@moffia100 Год назад
Is it possible to use two GeoJSON files with latitude and longitude values for the starting and ending points in Docker. The OPS tool in QGIS is based on the API and can't handle the amount of data that I have.
@admirableconsejero1
@admirableconsejero1 Год назад
Excelente video desde argentina. Saludos
@ertugrulpehlivan4512
@ertugrulpehlivan4512 7 месяцев назад
Thank you for the video, good job. We want to use openroute in one of our projects. API restrictions prevent us from progressing. Can we use this method? Do I need to install it separately for each customer? Can't we set up and host it ourselves for other customers?
@sunrajsharma736
@sunrajsharma736 8 месяцев назад
Great video, if possible can you also make a video of hosting the docker container in an Azure Container. It would be really helpful!!
@abduln8414
@abduln8414 Год назад
Excellent video, do you have one for OpenTripPlanner?
@harisrafiq1717
@harisrafiq1717 Год назад
its possible using multiple pbf file ..? how the configuration ..? thanks
@MattiaScalas
@MattiaScalas Год назад
Thank for the very clear explanation! After your tutorial I tried to add a new profile (walking) in the area I'm studying (North-West Italy) but I get an error probably due to the RAM allocation in my Docker. I know it's not 100% on topic here but if somebody knows how to do it would be great. Thanks a lot
@bryanpauldanganan323
@bryanpauldanganan323 Год назад
Upon entering docker compose up, I get the error message, "no configuration file provided"
@alexandrufilipescu1301
@alexandrufilipescu1301 28 дней назад
The volumes now in v8.0 look different. What would you suggest me to do? I wanted to add a custom map and I can't.
@syntaxbyte
@syntaxbyte 28 дней назад
Make sure the configuration points to the location of your pbf file: giscience.github.io/openrouteservice/run-instance/configuration/
@tyridol
@tyridol 2 месяца назад
the "fvck" in 16:00 give me a loud laugh
@sebastianarias9790
@sebastianarias9790 9 месяцев назад
Can you make a video doing an optimization problem with a self-hosted ors on Python code?
@GoetheHausMeknes1
@GoetheHausMeknes1 4 месяца назад
Hi, your video was very helpful to me. Now they have new version 8.1 while the folder data does not exist can you do a video to teach how to import pfb file please?
@bhaskardevgoel9697
@bhaskardevgoel9697 Год назад
Thank you for such a fantastic video. Can you make a video with steps on how to use the optimization endpoint of openrouteserive as well? I want to set up a local instance of ORS where I could generate optimized routes for hundreds of location points but the cloud API has a limit of around 50 locations.
@syntaxbyte
@syntaxbyte Год назад
Given the popularity of this video, I definitely do expect to make more videos regarding openrouteservice. I'm not sure at this point when exactly they will be live however, perhaps next week. Thanks for the feedback.
@vitor8547
@vitor8547 Год назад
hi, is it possible? I thought the optimization was only withing their API and could not be self hosted
@vibhu0610
@vibhu0610 Год назад
do you have any vide for VROOM installation ?
@anthonyjobey8821
@anthonyjobey8821 Год назад
This would really help because i am stuck getting vroom setup on windows with this setup
@tf2Replays1
@tf2Replays1 Год назад
So far I've followed the instructions both on Windows 10 and on a VM with Ubuntu installed. In both instances the osm file fails to change and is stuck on Heidelberg.. Also, the new folders in the docker directory remain empty (probably fails to create the graphs). Any idea what could be the problem?
@syntaxbyte
@syntaxbyte Год назад
Hmm… have you tried doing a fresh clone and setting your new osm file before the first start of the container?
@christianhampel1338
@christianhampel1338 Год назад
good morning! I wanted to know if you could help me, I followed the whole video but when I change to the Delaway map and put the same beginning and end as the video, the localhost keeps loading
@syntaxbyte
@syntaxbyte Год назад
If I recall correctly this usually happens when the map data is still loading. Some maps can take a while to load depending on the power of your system. Give it a good while and try the request again, that should solve the problem.
@remitregan4408
@remitregan4408 Год назад
When I git clone the url at the beginning the openrouteservices directory doesn't have a docker directory, is anybody else dealing with this problem?
@vitor8547
@vitor8547 Год назад
The github project used in this video is a bit different from the current git hub project. The reason being is that since the creation of this video it has been made many commits, altering a bit the structure. That being said, there is no need to create the folders with mkdir as mentioned in the video
@mxrobmx
@mxrobmx Год назад
what if I want to download like North and South America... ??? is it possible to set those two files?? (talking about .pbf files)
@syntaxbyte
@syntaxbyte Год назад
Looks like you could download both files and merge them: gis.stackexchange.com/questions/242704/merging-osm-pbf-files
@aleksandarmedarevic1959
@aleksandarmedarevic1959 6 месяцев назад
This is probably great, but could you please make a vide how install docker on mint though VM?
@rgayathri9164
@rgayathri9164 Год назад
Thanks! I followed through and im stuck at the mkdir -p conf elevation_cache graphs logs/ors logs/tomcat command. Its showing syntax error and i dont understand what is the mistake. Im using Windows 10.
@syntaxbyte
@syntaxbyte Год назад
Are you executing this command in a bash environment (Windows Subsystem for Linux, cygwin, etc) or in cmd? It won't work in CMD. I recommend doing this from a WSL instance.
@vi-vrienden1452
@vi-vrienden1452 Год назад
You could try put to it in brackets since CMD doesn't like spaces for example: mkdir -p conf "elevation_cache graphs logs/ors logs/tomcat command" Hope it helps!
@yoyogamesthebestgames7197
@yoyogamesthebestgames7197 4 месяца назад
Do my pc has always to be connected to the internet so I can use openrouteservice on my app?
@rksgeospatial
@rksgeospatial 4 месяца назад
No , its an local instance
@logicaldistraction
@logicaldistraction 7 месяцев назад
can you make another video about openpoiservice please?
@svdm007
@svdm007 Год назад
Thanks a lot for this tutorial. I was stuck at the part where you copy the osm.pbf file to openrouteservice. The command explorer.exe . (! include the extra dot !) helped for me. However, I can't find how to delete the 'car' folder? Windows 10 keeps telling me that I don't have administrator privileges. How to solve that?
@syntaxbyte
@syntaxbyte Год назад
You want to open explorer with admin privileges most likely. Try this: www.addictivetips.com/windows-tips/run-file-explorer-with-admin-rights-windows-10/
@svdm007
@svdm007 Год назад
After a lot of blood, sweat and tears, I found a solution to move forward. In (e.g.) Debian, type in the following commands (you will be asked for your Linux password): cd ~/openrouteservice/docker/graphs sudo rm -r ./car This allowed me to delete the car folder.
@adrianjmedinac8956
@adrianjmedinac8956 Год назад
Thank you ! After exploring the forums, viewing the documentation, reviewing and editing the file, ors-config.json in multiple ways Reinstall and restart the container. I keep getting the answer. "mistake": { "code": 2099, "message": "Could not get an appropriate route profile for Route Preference = drive-car" }, and it is the same in the other profiles Does anyone know how I can go to fix it?
@syntaxbyte
@syntaxbyte Год назад
Does this occur when using the a custom osm file? Are you certain the osm file is valid? Also, I believe the correct profile name is driving-car not drive-car so this could be an issue as well.
@adrianjmedinac8956
@adrianjmedinac8956 Год назад
@@syntaxbyte Hello, thanks for the answer. Yes that's how it is, driving-car ! I have used the default configuration of the container. Now I'll try with not building the source, as I found in the Logs what problem is in the user permissions in the containing and the reading of the profile. I'm working on this and I'll let you know if I find the solution. Docker container cannot create lock file in directory /home/ors/ors-core/data/graphs/car.
@adrianjmedinac8956
@adrianjmedinac8956 Год назад
It is running perfect! thank you so much
@rssistemasitu
@rssistemasitu Год назад
How to solve error: ors-config.json exists in ors-conf folder. Copy config to /ors-core/openrouteservice/src/main/resources/ors-config.json
@yazidmekhtoub
@yazidmekhtoub Год назад
it is not an error. if you wait a little the installation will continue
Далее
100+ Docker Concepts you Need to Know
8:28
Просмотров 892 тыс.
Наташа Кампуш. 3096 дней в плену.
00:58
You want a real DNS Server at home? (bind9 + docker)
32:31
Quick and Easy Local SSL Certificates for Your Homelab!
12:08
Linux on Windows......Windows on Linux
23:54
Просмотров 331 тыс.
Getting Directions in Python with OpenRouteService-py
19:58
I switched back to AMD... and I have no regrets.
24:11
Просмотров 405 тыс.
Virtual Machine (VM) vs Docker
8:52
Просмотров 191 тыс.
Top 7 Ways to 10x Your API Performance
6:05
Просмотров 320 тыс.