Giter Club home page Giter Club logo

Comments (7)

bawidyantoro avatar bawidyantoro commented on July 3, 2024

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.

Doev avatar Doev commented on July 3, 2024

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.

dkastl avatar dkastl commented on July 3, 2024

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.

bawidyantoro avatar bawidyantoro commented on July 3, 2024

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.

bawidyantoro avatar bawidyantoro commented on July 3, 2024

Hai Doev

I thought so. but why the margin value can be different as I wrote above.

from osm2pgrouting.

dkastl avatar dkastl commented on July 3, 2024

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.

bawidyantoro avatar bawidyantoro commented on July 3, 2024

Thank you for your sharing, Mr. dkastl. I want to learn it more and more.

from osm2pgrouting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.