Comments (7)
Hi Doev
can I ask, what does this priority scale mean? is priority 1 higher in value? I really don't know and I'm still figuring out what this priority scale means.
from osm2pgrouting.
Hello bawidyantoro,
I have to guess, cause I am only a user. But for sure it means the priority for the routing algorithm to use a given road type.
from osm2pgrouting.
Answer to the first question: anyone is free to adjust their configuration file as they like. The one(s) in the repository are just examples. If someone has a better setup and things it should be changed in the repository, a pull request is appreciated.
Answer to the second question: after import there are a few tables created with classifications and sample costs. But in the end pgRouting does not enforce the use of priorities or specific costs. When you write your SQL query using a pgRouting function you specify what you want to use as a cost, and using priorities is a way to increase or lower costs.
from osm2pgrouting.
Hai dkastl
Thank for your reply. Does this mean that the priority value is optional and can be modified as needed? if true means that the user can adjust according to their needs. The problem is I am confused, why are the values different like 1.0, 1.15, 1.30, 1.75, then increased to 2.5, 3.0, and 5. I am curious about the initial calculations so that this becomes the default configuration. Thank you.
from osm2pgrouting.
Hai Doev
I thought so. but why the margin value can be different as I wrote above.
from osm2pgrouting.
In pgRouting it's all up to the user how to define your "cost function". So even if you have those values after import you could just go with the length of the road segments as costs, which would give you the shortest path.
I do not really know historically how the attributes and their values were introduced. You may want to look at the workshop, which also uses osm2pgrouting to import the data. But the examples later just use simple attributes: https://workshop.pgrouting.org/2.6/en/index.html
from osm2pgrouting.
Thank you for your sharing, Mr. dkastl. I want to learn it more and more.
from osm2pgrouting.
Related Issues (20)
- Table "ways" has "gid" as id HOT 2
- Migrate to GH Actions
- How is the column "cost" and similars calculated? HOT 5
- Issue with data import: fe_sendauth: no password supplied HOT 3
- osm2pgrouting does not compile with libpqxx v 7.1.1, 7.2.0. Compiles okay with 6.4.7 HOT 8
- Remove "priority" and "max-speed"
- New release? HOT 4
- 2.3.7 compile error HOT 5
- Change 'gid' column in 'ways' table to id' HOT 15
- Move branch master to "main"
- Release v2.3.8 HOT 1
- Some way are not imported in the ways table HOT 2
- Too many edges HOT 4
- Error opening /usr/share/osm2pgrouting/mapconfig.xml HOT 1
- Problem creating topology on pgrouting HOT 2
- unable to open / parse config file HOT 3
- osm_relations table does not get populated
- unclosed token at line 51376846 Failed to open / parse data file
- Problem compiling on alpine linux (libpqxx) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osm2pgrouting.