Questions tagged [routing]

consist of finding optimal paths along geographic networks such as roads or trail systems.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

How to query my locally-hosted ORS backend for optimized routes using the openrouteservice R package

I am using the openrouteservice R package to access the optimization endpoint of ORS API. I set my API key as follows: Sys.setenv(OPENROUTESERVICE_KEY = <my_api_key>) Then I go on to query the ...
Faustin Gashakamba's user avatar
0 votes
1 answer
40 views

Route design for Travelling Salesperson [closed]

I need a GIS-based solution that helps to identify the sales route of a salesperson. In a given situation, I have 500k POS/point of sales throughout the country. To server those 500k POS there are 100 ...
Devils Dream's user avatar
  • 3,171
2 votes
0 answers
49 views

Building route on defined graph of roads with intermediate stops in QGIS

I have a layer with stops of public ground transportation routes. I also have a layer with a graph of roads where public transportation can go. I need to build a route from the first to the last ...
Anna Mogilevich's user avatar
2 votes
1 answer
32 views

Why does QGIS get the whole connected component regardless of cost when calculating service area?

I'm new to QGIS and I'm having a strange problem with its service area tool. I have a line layer representing a network of roads, imported from openstreetmaps. If I calculate the service area from a ...
quantumcoffeemug's user avatar
0 votes
0 answers
16 views

Create URL routes in Esri Web AppBuilder (WAB)

I'm customizing my Esri Web AppBuilder portal to create an admin page where I can see analytics that I collect through a Python API that I created. The idea is that it is an administrative panel where ...
Marco Antônio de Lima Costa's user avatar
0 votes
1 answer
60 views

Display route layer between current user location and geocoded search locaton in Leaflet?

I would like to create a simple Leaflet app that zooms to the user location, and also to a location defined within the geocode search bar. Secondly, the app should show the shortest route between the ...
Samuel Gachuhi's user avatar
0 votes
1 answer
45 views

QNEAT3 routing with custom length

I am trying to create Iso-Areas with the great QGIS package QNEAT3, with the added requirement, that I would like to specify which attribute contains the distance of the segment. This is required ...
Delphine's user avatar
1 vote
0 answers
44 views

Extracting street space polygons from a pedestrian network with separate sidewalk geometries using QGIS/PyQGIS

I have a network of sidewalk geometries including crossings extracted from OpenStreetMap (OSM; here: a part of Neukölln district in Berlin, Germany) using overpass turbo (as of today, some gaps still ...
winnewoerp's user avatar
  • 1,508
2 votes
2 answers
81 views

How do I add vertices (in QGIS) on segments where other nodes (from the same layer) snap to it?

I've started drawing a routing network but realised after finishing it that it doesn't work without nodes at all intersections. "shortcut" lines were used to join the main routes together, ...
JdP's user avatar
  • 43
2 votes
1 answer
68 views

Difference between PostGIS pgrouting and Lizmap pgrouting

I'm starting to work with pgrouting. I know that pgrouting is an extension of PostGIS. I saw that Lizmap (which I currently work on) provides a module called pgrouting. Two points are drawn from the ...
Guido Fonzo's user avatar
1 vote
0 answers
19 views

Graphical Modeler_ Routing Calculation

I am trying to modify the QNEAT 3 plugin to make it calculate the least cost path, where the cost is not the "distance" ... I am using the "Expression" tool. Is there a simple way ...
Alaa Torkey's user avatar
0 votes
0 answers
48 views

Least cost path_routing

I am using the Least-Cost-Path plugin tool to generate least cost routes using a given road raster layer...The thing is that the routes sometimes are irrational. For example, making a u-turn just ...
Alaa Torkey's user avatar
0 votes
0 answers
23 views

Joining Attributes by Location (Summary) - Further extension?

(Using QGIS version 3.28.6-Firenze) I am trying to aggregate a directional polyline layer, representing route flows ('volume') and obtain the sum of these by segment and by direction. e.g. I have 4 ...
Paul Roberts's user avatar
1 vote
0 answers
92 views

How to simplify a segmented line network based on smallest angles at connection points?

I´d like to simplify a network of lines by merging small segments into interconnected compartements. The algorithm should merge the lines based on the smallest cost (degree) at the junction points to ...
mapmap's user avatar
  • 11
0 votes
0 answers
112 views

Showing Google routes as a layer in ArcGIS Pro/Online

So, I'm aware of the ability to use network analysis for routing in ArcGIS Pro and would like to use it. however, I'm under the constraint that we don't have licenses for Network Analyst, and we also ...
Jackson Dunn's user avatar
1 vote
1 answer
90 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 ...
winnewoerp's user avatar
  • 1,508
0 votes
0 answers
12 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'...
dimas putra's user avatar
1 vote
0 answers
61 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 ...
J.A.A.Sainz's user avatar
0 votes
0 answers
117 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 ...
Daniel AG's user avatar
3 votes
2 answers
528 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 ...
Mathematician 42's user avatar
1 vote
0 answers
145 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 ...
Kumbra's user avatar
  • 450
1 vote
0 answers
106 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 (...
Zev_Zide's user avatar
  • 187
0 votes
2 answers
1k 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 ...
milad's user avatar
  • 699
3 votes
0 answers
215 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 ...
IceBear123's user avatar
0 votes
1 answer
720 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 ...
Douglas F's user avatar
7 votes
3 answers
418 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 (...
harry.kuril's user avatar
0 votes
0 answers
27 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 ...
Maximiliano Ariel Corvalan's user avatar
1 vote
1 answer
88 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 ...
Darren Cope's user avatar
  • 6,616
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....
Antonio Pavicevac-Ortiz's user avatar
1 vote
0 answers
111 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 ...
Timothy Dalton's user avatar
0 votes
0 answers
222 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 ...
Lenn's user avatar
  • 1,193
1 vote
1 answer
167 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 ...
Albine Pro's user avatar
5 votes
2 answers
205 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 ...
Ferran OA's user avatar
5 votes
2 answers
99 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(...
Kathryn Adams's user avatar
2 votes
1 answer
130 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 ...
Kathryn Adams's user avatar
2 votes
0 answers
158 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". ...
Martin's user avatar
  • 21
0 votes
0 answers
99 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 (...
HumanoVirtual's user avatar
1 vote
0 answers
40 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 ...
Noah P's user avatar
  • 59
3 votes
1 answer
58 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 ...
xyzit's user avatar
  • 41
1 vote
0 answers
157 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 ...
xyzit's user avatar
  • 41
1 vote
0 answers
60 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 ...
Saidamir's user avatar
3 votes
1 answer
337 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 ...
Anas.S's user avatar
  • 223
0 votes
0 answers
67 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, ...
olimih's user avatar
  • 1
0 votes
0 answers
60 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 ...
Karson's user avatar
  • 61
2 votes
1 answer
343 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 ...
lenlen's user avatar
  • 63
0 votes
0 answers
63 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 ...
Kathryn Adams's user avatar
0 votes
1 answer
345 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 ...
Ayesha 's user avatar
0 votes
1 answer
421 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 ...
Sam's user avatar
  • 213
3 votes
1 answer
811 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 ...
wtgeographer's user avatar
0 votes
0 answers
150 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 ...
Drew's user avatar
  • 1

1
2 3 4 5
12