Search code examples
c#openstreetmaposm.pbf

Open Street Map - Itinero C# - Road Restrictions


I'm using Itinero in C#

I want to restrict in my route.

For Example;

There are 3 bridges between two points.

  • Name of the first bridge X
  • Name of the second bridge Y
  • Name of the third bridge Z

If I have a bigTruck, I want to go to X Bridge. Else if I have a SmalTruck , I want to go to Y Bridge Else I want to go to Z Bridge.

Actually, I searched to lua script. But I don't know, how can I do in Itinero ?

I want to make a statement to make it clearer.

I live in İstanbul(Turkey.)

There are 3 bridges and tunnel linking Anatolia and European continents in Istanbul.

YSS Bridge, FSM Bridge and Bogazici Bridge, Eurasian Tunnel

BigTruck never cross the FSM Bridge and Bogazici Bridge

Smalltrucks never cross the Bogazici Bridge and Eurasian Tunnel but Smalltrucks can pass through the YSS but are not preferred because this is paid.

Cars can pass through the all bridges and tunnel but are not preferred because they are paid. And cars usually use the first bridge.

Can you help me please ?


Solution

  • I found my answer with JOSM. You can restrict your roads. Whatever you want.

    Important Note : You should be careful about profile. (You can use lua.script)