I'm using a software that uses OSM files to optimise some routes. Problem is that the routes I'm optimising are for trucks and heavy vehicles, so there are roads that are perfectly valid for the regular cars but not available for trucks (such as bridges and tunnels).

I would like to know if it's possible for me to delete some roads from my local OSM file. I'm working on an entire country, so JOSM is kinda helpless and I'm at a loss.

asked 06 Jun '19, 22:34

burjuvaazi's gravatar image

accept rate: 0%

If the roads are marked with hgv=* , it should be possible to filter a local OSM file with Osmosis.

If the roads are hgv=no for all hgv vehicles, it may be better to mark the roads in OSM and use periodic country downloads as the local OSM file.

permanent link

answered 07 Jun '19, 11:23

Mike%20N's gravatar image

Mike N
accept rate: 17%

You should be adding any restrictions that stop the bridges and tunnels being used by the truck size you are considering (so maxweight, maxheight, maxlength, axle load, potentially explicit restrictions like hgv=no and so on) to OSM directly (assuming these are available from survey or a legit source). Then your routing profile just needs to take these in to account.

See also:

permanent link

answered 07 Jun '19, 11:11

SimonPoole's gravatar image

SimonPoole ♦
accept rate: 18%

edited 07 Jun '19, 12:54

@SimonPoole & @Mike N thank both of you for your help! I'll make sure I'll be checking those.

(08 Jun '19, 12:58) burjuvaazi
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 06 Jun '19, 22:34

question was seen: 1,082 times

last updated: 08 Jun '19, 14:19

powered by OSQA