Skip to main content

Questions tagged [routing]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
228 views

Phantom points in QGIS do not dissapear

Does anybody know how to delete these red dots with tooltips? There are not connected to any layer. Even if i delete all layers from the project these points remane in an empty project. Closing the ...
stew's user avatar
  • 93
0 votes
0 answers
27 views

Use TomTom Data as Network Dataset to Calculate OD Cost Matrix Distance and Time

I am stuck in with configuring a network dataset using TomTom data. I used to rely on the Routing_ND network dataset provided by ESRI Business Analyst to perform OD Cost Matrix analysis. Now I am ...
Gengkui Liu's user avatar
0 votes
0 answers
82 views

How can a request be started with Leaflet Routing Machine with one waypoint?

If a round trip is compiled with the Leaflet Routing Machine and lrm-openroutservice, this is not fired as the Leaflet Routing Machine requires a start and an end point => two waypoint. ...
Severin's user avatar
1 vote
0 answers
47 views

pgr_nodeNetwork returns old_id as int and not bigint

I am using pgr_nodeNetwork('edges', 0.001, 'id', 'geom', 'noded', '', f) to create the paths network. Since the table is being re-generated multiple times the value of old_id in resulting table have ...
postgis-user's user avatar
0 votes
0 answers
48 views

QGIS automate creating equally long routes from a line street layer

I have the task of designing routes within a street line layer that have similar lenght and are designed to drive along each road once. This is for purpose of conducting a survey where each street ...
Gregory C's user avatar
  • 413
0 votes
1 answer
77 views

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

I am using the openrouteservice R package to access the directions 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
-1 votes
1 answer
84 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,189
2 votes
0 answers
54 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
37 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
17 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
96 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
63 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
0 votes
0 answers
65 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,504
1 vote
2 answers
125 views

Adding vertices (in QGIS) on segments where other nodes (from 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
  • 39
2 votes
1 answer
81 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
56 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
27 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
101 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
  • 53
0 votes
0 answers
178 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
111 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,504
1 vote
0 answers
69 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
149 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
745 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
2 votes
0 answers
194 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
  • 470
1 vote
0 answers
131 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
2k 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
  • 729
3 votes
0 answers
242 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
914 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
490 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
30 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
93 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,636
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
133 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
239 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,297
1 vote
1 answer
206 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
237 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
105 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
140 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
188 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
111 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
42 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
68 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
160 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
  • 111
3 votes
1 answer
403 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
73 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
73 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
396 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
65 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

1
2 3 4 5
12