Questions tagged [routing]
consist of finding optimal paths along geographic networks such as roads or trail systems.
566
questions
1
vote
1
answer
46
views
Setting edge drawing direction-sensitive attribute-based impedance (cost) in QGIS network analysis
I need to calculate the best cycling route using selected attributes of the network layer as cost values. Using the "Shortest Path (Point to Point)" tool for network analysis in QGIS, how ...
0
votes
0
answers
11
views
Error epoch in VRP
I'm currently using VRP for logistical routing needs, but when running it shows the error "Rtg_SaveVrp : 'UtcUtil_ToEpoch' failed because parameter 1 is not allowed to be null" on the web. I'...
1
vote
0
answers
43
views
How to solve "handle bad layers" for hundreds of cases in QGIS?
I am getting the "handle bad layers error" in QGIS 2.18 for over 200 hundred cases.
I am not willing to manually change all these layers. Is there a way to make the program look in a new ...
0
votes
0
answers
45
views
Merge multiple Isochrones
I have 2 Isochrone maps generated by OpenRouteService (using the R package). Each segment represents a walk of 60 seconds, 300 seconds in total.
Since both starting points are quite near, the ...
2
votes
2
answers
165
views
Preprocessing OSM for Valhalla Meili
I'm a complete noob when it comes to OpenStreetMap and open-source map matching. I want the collective wisdom of more experienced user to evaluate whether a certain approach is doable. I'll first ...
0
votes
0
answers
21
views
Make route simulations without relying on an API key
I have to do multiple route simulations in QGIS. I have a shapefile with every walkable path in my study area (national park + surroundings).
I have seen that plugins like ORS Tools or Valhalla do ...
1
vote
0
answers
63
views
Add custom weights for route calculation in Valhalla routing
Have anyone managed to add custom weights to specific road segments in Valhalla which will be taken as additional factor/cost/weight when calculating route?
I struggled to find info on this topic. I ...
1
vote
0
answers
45
views
Around the world cost distance analysis for shipping routes: routing on the other side of the planet
For cartographic purposes I'd like to calculate routes of cargo-vessels from selected ports around the globe.
The approach I wanted to take was:
Create global cost raster, where land is impassable (...
0
votes
0
answers
246
views
Why OSMnX shortest_path() for a list of origins and destinations is very very slow?
I want to create a list of 1000 random points in Quebec City and then, create a GeoDataFrame (gdf) from all these points. Then, cross join this gdf with itself (1 million rows) to have origins and ...
0
votes
2
answers
597
views
How to calculate the length and duration of trip for a GeoDataFrame of points on OpenStreetMap using OSMnX package?
I have a GeoDataFrame of GPS points and I want to calculate the length and duration of trip from each point to all other points.
My input GeoDataFrame looks like this:
id Longitude Latitude ...
3
votes
0
answers
162
views
Travelling salesman but doesn’t have to be most efficient route just trace the roads. (Python and QGIS)
I’ve got a project; for one part of this project I intend to draw a route over a shapefile, it contains 9000 nodes.
What I’ve tried:
Generating routes on a map layer in QGIS by following the lines of ...
0
votes
1
answer
329
views
Hide and show route path by on click event?
I want to make a visual filter for the user. I already managed to hide the markers. The markers I hid through CSS. Now I need to hide the lines that connect the markers.
As I saw this autoRoute ...
7
votes
3
answers
298
views
Interactively create route that snaps to route layer in QGIS
There are many online tools for planning routes (e.g. Gaia GPS for hiking, Strava for cycling) in an interactive way (by clicking) such that the route generated conforms to an underlying route layer (...
0
votes
0
answers
27
views
Speed profile data availability
We are building a simulator to run analysis on routing in Prague area. I used OpenStreetMap to build a graph to calculate the shortest route which works well. However; I need to enhance the street ...
0
votes
0
answers
23
views
QGIS Short route points with fixed start and end
I need to calculate the shortest/fastest route, distance travel, etc for a group of points with fixed and specified start and end point.
Start/end points could be different or the same.
I tried with ...
1
vote
1
answer
78
views
pgRouting to create "Loops" with Specific Length
I'm attempting to create an 'optimum' route that starts/ends at the same point and is (close to) X distance long, as opposed to just the absolute optimal route. For example, assuming my cost is a ...
0
votes
0
answers
80
views
OSRM Create link to route including current position
Here's what I'm trying to do. I have two lat, lngs. One is the target or the end point, the other is a stop.
I'm trying to open a map in a browser that finds the route from a individual or the current ...
0
votes
0
answers
12
views
Public Routing Service URL for `arcpy.na.MakeVehicleRoutingProblemAnalysisLayer()`
I had a script to solve routing problems using arcpy.na.MakeVehicleRoutingProblemAnalysisLayer(), but I no longer have access to the network_data_source. According to the documentation - this can be a ...
0
votes
0
answers
31
views
Leaflet.js: Is a Circle a good way to create a search for an area to create a route? [duplicate]
I am trying to create a route for a user based on a search of an area based on topography data. The criteria is an elevation property.
E.G. a user can search an area and get a route based on elevation....
1
vote
0
answers
77
views
Maritime routing considering high detail depth data
I'm looking for ways to find routes between points considering high detail depth data. In the screenshot I presented here the size of the depth polygons can be down to a few square metres. My overall ...
0
votes
0
answers
132
views
OSM import into PostgreSQL database and export out to OSM
What is the best way to import OSM data into local PostgreSQL database
and to export it back out as OSM.pbf later?
Osmosis seems to work fine, however it is not actively maintained.
Background
Once ...
0
votes
0
answers
155
views
Getting OSM Data (e.g. maxSpeed) for route that is returned from OSM Routing
Is there any way to use the Openstreetmap Routing Service and use the returned route to get access to all the tags that the OSM data has for this route?
Specifically, I am thinking about querying the ...
0
votes
0
answers
34
views
Using a tool in QGIS to generate a route over every road within a selection
Currently I have a map with some roads on it, I am using the coords of the junctions/corners in a custom app as points to be drawn using MonkeyC code on a Garmin device. I want to connect them with ...
1
vote
1
answer
106
views
Spatialite Routing Point-to-Point
I tried to setup routing in Spatialite following this guide. The setup of routing data was alright. I'm trying to achieve route from point to point that are not lying directly on the network. Im able ...
5
votes
2
answers
148
views
Calculating cost values in pgRouting using ST_DWithin
I have a table where there are two geometries: geom_way (for routing roads) and (osm_meta) which is a triangulation from polygons. I use ST_DWithin function (between both geometries) with a distance ...
5
votes
2
answers
88
views
Removing certains routes from pgrouting output table
I have used pgRouting to generated multiple many to many traffic routes different points of interest. I have used st_Dwithin to put a catchment area on the routing alogirthm, however the agg_cost(...
2
votes
1
answer
90
views
Showing Origins on ARRAY multiple routes - pgRouting
I have routed between multiple points using pgRouting. I have aggregated the total cost of each route (length) into a new table using edge = -1 to be imported into an inverse distance weighting ...
2
votes
0
answers
102
views
QGIS find connected lines and store them as Attribute
I have the following issue and as I'm quite a QGIS beginner I don't know how to solve it.
I have several Shape files that contain multisection lines.
The all have an attribute called "ID".
...
0
votes
0
answers
73
views
Fix geometry to run pgr_createTopology which is very slow and fails
I'm trying to create topology in PostgreSQL using pgr_createTopology but it's very slow and fails after processing 4000 nodes. There are 300,000 nodes. I tried the same query with another road table (...
1
vote
0
answers
35
views
Drive Route Automation that is NOT shortest distance
I work on a wireless engineering team and we are getting ready to test some antenna propagations for our network. This involves setting up the antenna in a certain location and then driving around the ...
3
votes
1
answer
38
views
Is there a way to penalize or assign cost to transferring edges when routing in pgrouting?
I'm trying to create a routing app for bus routes. I got the network noded and they're all over the place as expected. Running pgr_Dijkstra() returns like 5 bus line, with 8 transfers on a trip.
The ...
1
vote
0
answers
108
views
Find shortest path between two arbitrary points on a network that's has disconnected edges/ways
I have pre-defined bus routes as directed edges and they're all loops starting and ending on the same point.
Sometimes they form a polygon with no intersections with other bus loops and sometimes it ...
1
vote
0
answers
59
views
Add routing control to another div instead of map in Leaflet [duplicate]
I have a React app which shows bike stations on a Leaflet map. If the user clicks the station, it routes the user to that station (Leaflet routing machine). How can I add routing control div to ...
3
votes
1
answer
222
views
Creating multiple routes with several stops using QGIS
I am trying to find the shortest paths given a number of points with a specific order for each path. Specifically, my point data have the following format:
I used the approved solution given in ...
0
votes
0
answers
60
views
OSM route inside campsite
I have a problem that I want router to route only inside campsite if starting point is inside campsite, not around campsite as the example in the image. Is there any way to do it? If it is important, ...
0
votes
0
answers
41
views
QGIS Toolbox for Loop Routes?
I am looking for a function or toolbox which allows for generating loop routes subject to constraints. It would look something like:
Attribute
Description
Example
Network
Routing network
OSM extract
...
2
votes
1
answer
237
views
Osmium and OSM: Remove a relation from .pbf map file
I am trying to use osmium to remove a relation from a .pbf file (specifically the Denmark extract from Geofabrik)1. The relation is part of a cycle network. I essentially want to calculate routing ...
0
votes
0
answers
47
views
Adding distance threshold to pgrouting script
I have created a loop which produces the shortest distance route between all origins and destinations within a study area. This is essentially showing routes undertaken by motorised transportation as ...
0
votes
1
answer
247
views
ArcGIS Online Routing service
I have a serious confusion understanding the link: http://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis
This is the default format to access the routing service, but this isn't ...
0
votes
1
answer
310
views
Aggregate polylines in JavaScript (Leaflet)
After executing a certain amount of routing calculations, I have a list of vehicle routes as shown in the image below. Now I have added an opacity to these lines to visualize the frequency of certain ...
3
votes
1
answer
583
views
Why is pgr_dijkstra not giving shortest path
I am using a road network and the following postgres/postgis operations to perform routing using pg_routing and the pgr_dijkstra method. I am successfully generating routes but they are not the ...
0
votes
0
answers
107
views
Adding linear distances along polyline segments (start/end stations) to attribute table in QGIS
This seems like a pretty simple application but I've been struggling to find the appropriate tool.
I have a polyline feature (a trail network) that contains fields with attributes about each segment ...
0
votes
1
answer
238
views
Finding shortest routes between multiple origins and destinations?
For example, I have 100 origin points and 100 destination points. All points are connected to each other. I want to know the route between each origin and each destination. How do I do it all at once?
0
votes
0
answers
523
views
Mobile friendly Styling for Esri Widgets in JavaScript 4.x API and Calcite
Has anyone had difficulty (or experience) styling Esri widgets for mobile friendly use?
I am currently working on a routing application whose code structure (I believe) makes it impossible to access ...
5
votes
1
answer
254
views
pgr_dijkstra is considering one-way streets as bidirectional
I imported data from a map extracted from OpenStreetMap. With osm2pgrouting I imported it into PostgreSQL, to be worked with pgRouting and PostGIS. Command used:
osm2pgrouting -f DIRECTORY/map.osm -d ...
1
vote
0
answers
141
views
Split intersections of lines considering bridges and tunnels
I want to make a road network routable. I already have a road shapefile, but there are many intersections of lines that I want to split. Now I have two problems:
(1) My first approach to split them ...
1
vote
0
answers
212
views
Collect points (nodes) along the route via GraphHopper API in Python based on distance or real time tracking
I am currently working on the vehicle routing problem. I managed to find the shortest route between OD pair via GraphHopper API in Python. Besides, I managed to get the points along the route based on ...
1
vote
1
answer
41
views
Distance Thresholds - pgRouting
I have been working with a set of data which mimics a shortest distance 'many to many' network analysis between COA population weighted centroids and education points in Bristol. My population ...
1
vote
1
answer
1k
views
Getting Leaflet routing control result outside map in a div or table [closed]
All of the examples of Leaflet routing control display the result (iterenary) inside the map area.
I want to display it outside in a div or table element. There is ItineraryBuilder in the API but no ...
0
votes
1
answer
287
views
Mapbox - routing over specified data
I'm making a map which enables routing over hiking trails. I have GeoJSON data containing my custom hiking trails and they are displayed as layer on the map. User can click on that layer and add ...