'Vroom error - conncetion refused: nominatim
I am trying to setup a local Vroom instance using docker-compose (following this tutorial). Here is my docker-compose file:
version: "3"
services:
osrm:
container_name: osrm
image: osrm/osrm-backend
restart: always
ports:
- "5000:5000"
volumes:
- /home/florian/Documents/repo/vroom-test:/data
command: "osrm-routed --max-matching-size 1000 --max-table-size 1000 --max-viaroute-size 1000 --algorithm mld /data/sachsen-anhalt-latest.osrm"
networks:
tsp_network:
aliases:
- osrm
vroom-backend:
container_name: vroom-backend
image: vroomvrp/vroom-docker:v1.11.0
restart: always
ports:
- "3000:3000"
environment:
- VROOM_ROUTER=osrm
depends_on:
- osrm
networks:
tsp_network:
aliases:
- vroom-backend
vroom-frontend:
container_name: vroom-frontend
image: iedmrc/vroom-frontend
restart: always
ports:
- "9966:9966"
depends_on:
- osrm
- vroom-backend
networks:
tsp_network:
aliases:
- vroom-frontend
networks:
tsp_network:
driver: bridge
Everything starts up fine and seems to work, but when I tried to use the vroom-frontend, it does not work and I get the following error:
I think that happens because nominatim blocked my IP-address (too many requests) - is this supposed to happen? Shouldn't work Vroom without this external service?
I am also getting the following error:
Here is my input file, which works fine when used on the Vroom demo:
{
"vehicles" : [
{
"id" : 0,
"description" : "vehicle 0: 0:0 - 0:0",
"start" : [
12.304373066846503,
51.62270653765847
],
"end" : [
12.304373066846503,
51.62270653765847
],
"capacity" : [
9
],
"skills" : [
],
"time_window" : [
1644188400,
1644274800
],
"breaks" : [
{
"id" : 1,
"time_windows" : [
[
1644195600,
1644267600
]
],
"service" : 1800,
"description" : "30 minute break between 2:0 and 22:0."
}
]
},
{
"id" : 1,
"description" : "vehicle 1: 0:0 - 0:0",
"start" : [
12.304373066846503,
51.62270653765847
],
"end" : [
12.304373066846503,
51.62270653765847
],
"capacity" : [
9
],
"skills" : [
],
"time_window" : [
1644188400,
1644274800
],
"breaks" : [
{
"id" : 1,
"time_windows" : [
[
1644195600,
1644267600
]
],
"service" : 1800,
"description" : "30 minute break between 2:0 and 22:0."
}
]
},
{
"id" : 2,
"description" : "vehicle 2: 0:0 - 0:0",
"start" : [
12.304373066846503,
51.62270653765847
],
"end" : [
12.304373066846503,
51.62270653765847
],
"capacity" : [
9
],
"skills" : [
],
"time_window" : [
1644188400,
1644274800
],
"breaks" : [
{
"id" : 1,
"time_windows" : [
[
1644195600,
1644267600
]
],
"service" : 1800,
"description" : "30 minute break between 2:0 and 22:0."
}
]
},
{
"id" : 3,
"description" : "vehicle 3: 0:0 - 0:0",
"start" : [
12.304373066846503,
51.62270653765847
],
"end" : [
12.304373066846503,
51.62270653765847
],
"capacity" : [
9
],
"skills" : [
],
"time_window" : [
1644188400,
1644274800
],
"breaks" : [
{
"id" : 1,
"time_windows" : [
[
1644195600,
1644267600
]
],
"service" : 1800,
"description" : "30 minute break between 2:0 and 22:0."
}
]
}
],
"shipments" : [
{
"amount" : [
1
],
"skills" : [
],
"pickup" : {
"id" : 0,
"service" : 60,
"location" : [
12.219437,
51.715622
],
"time_windows" : [
[
1644201240,
1644203040
]
],
"description" : "pickup: Salzfurtkapelle, Alte Schule (order #0)"
},
"delivery" : {
"id" : 1,
"service" : 60,
"location" : [
12.175563,
51.694164
],
"time_windows" : [
[
1644203040,
1644204360
]
],
"description" : "delivery: Thurland, Schule (order #0)"
}
},
{
"amount" : [
1
],
"skills" : [
],
"pickup" : {
"id" : 1,
"service" : 60,
"location" : [
11.984295,
51.477322
],
"time_windows" : [
[
1644201240,
1644203040
]
],
"description" : "pickup: Höhnstedt, Hauptstraße (order #1)"
},
"delivery" : {
"id" : 2,
"service" : 60,
"location" : [
11.738257,
51.502209
],
"time_windows" : [
[
1644203040,
1644205200
]
],
"description" : "delivery: Halle, Hauptbahnhof ZOB(8) (order #1)"
}
},
{
"amount" : [
1
],
"skills" : [
],
"pickup" : {
"id" : 2,
"service" : 60,
"location" : [
11.984295,
51.477322
],
"time_windows" : [
[
1644201900,
1644203700
]
],
"description" : "pickup: Bennstedt, Eisdorfer Straße (order #2)"
},
"delivery" : {
"id" : 3,
"service" : 60,
"location" : [
11.824311,
51.480865
],
"time_windows" : [
[
1644203700,
1644205200
]
],
"description" : "delivery: Halle, Hauptbahnhof ZOB(8) (order #2)"
}
},
{
"amount" : [
1
],
"skills" : [
],
"pickup" : {
"id" : 3,
"service" : 60,
"location" : [
11.978663,
51.488106
],
"time_windows" : [
[
1644202020,
1644203820
]
],
"description" : "pickup: Hohenthurm, Alte Bahnhofstraße (1) (order #3)"
},
"delivery" : {
"id" : 4,
"service" : 60,
"location" : [
12.097989,
51.520866
],
"time_windows" : [
[
1644203820,
1644204900
]
],
"description" : "delivery: Halle, Am Steintor (order #3)"
}
}
]
}
Here is how it should look (using the official Vroom demo server):
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|



