Re: [OSRM-talk] How to disable all ferry routes?

2015-11-11 Thread Richard Marsden
thanks - I was still at the LUA  stage (and quite a bit can be worked out from 
just this level).

The explanation below explains 0 and 1, but I couldn't see any explanation of 
the other values - despite some c++ code that set default TravelMode values of 
4 in a couple of places. No documentation in TravelMode.hpp

The lack of documentation is an issue, and I was planning to write a few notes 
about the LUA profiles for others on my blog. They're bound to be incomplete, 
but they would be a start and could be updated/corrected as a living document.

Richard

On Nov 11, 2015, at 6:50 PM, Daniel Hofmann  wrote:

> Let me show you how you can find out more about specific variables like 
> mode_ferry:
> 
> your best bet is to search the code base, for example, see this initial 
> search for mode_ferry:
> 
> https://github.com/Project-OSRM/osrm-backend/search?utf8=%E2%9C%93&q=mode_ferry&type=Code
> 
> you can see how we set result.forward_mode and result.backward_mode to 
> mode_ferry there, so let's search for forward_mode:
> 
> https://github.com/Project-OSRM/osrm-backend/search?utf8=%E2%9C%93&q=forward_mode&type=Code
> 
> this gives us some lua profiles, which we ignore, since we want to see how 
> the OSRM implementation uses forward_mode and backward_mode; the last search 
> hit is scripting_environment.cpp:
> 
> https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/extractor/scripting_environment.cpp#L121-L124
> 
> this is where we expose the ExtractionWay's set_forward_mode and 
> set_backward_mode member functions, aliasing them to the lua properties 
> forward_mode and backward_mode --- so let's go on searching for the 
> ExtractionWay type:
> 
> https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/extractor/extraction_way.hpp#L112-L115
> 
> in those member functions, the forward_travel_mode and backward_travel_mode 
> are set accordingly. If you check their types a few lines below in the member 
> attribute declarations, you will see they are of type TravelMode. And here it 
> is:
> 
> https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/data_structures/travel_mode.hpp#L34-L35
> 
> a quick search for TRAVEL_MODE_INACCESSIBLE reveals the following line in the 
> extractor:
> 
> https://github.com/Project-OSRM/osrm-backend/blob/9ef1f8cba31ec8323b357d233f1c552b1c7c9e09/extractor/extractor_callbacks.cpp#L95-L99
> 
> where ways are discarded, if they are inaccessible! Tada!
> 
> 
> As you can see, even though it is quite a bit of effort tracing back specific 
> variables, it can be done in a few minutes with only the most basic tools (I 
> did this entirely using the Github search functionality --- of course you can 
> use grep or your code browser of choice, too).
> 
> Hope that helps,
> Daniel J H
> 
> On Wed, Nov 11, 2015 at 7:06 PM, Richard Marsden  wrote:
> By coincidence I was working through the lua scripts trying to understand 
> them.
> 
> So what is the significance of the 1,2,3?  Just unique identifiers. As long 
> as they're non-zero, they will be enabled?
> 
> Richard
> 
> 
> On Nov 11, 2015, at 9:23 AM, Daniel Hofmann  wrote:
> 
>> If you take a look at the car profile, you will see a ferry_mode variable, 
>> that sets the travel mode:
>> 
>> https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/profiles/car.lua#L151
>> 
>> If you set this to 0 (i.e. 'inaccessible") as defined here:
>> 
>> https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/data_structures/travel_mode.hpp#L34-L35
>> 
>> then the extractor discards ferry routes because you marked them 
>> inaccessible.
>> 
>> On Wed, Nov 11, 2015 at 9:03 AM, Peter Becker  wrote:
>> Hello, i dont want any ferries in my routes. Is this possible?
>> 
>> ___
>> OSRM-talk mailing list
>> OSRM-talk@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/osrm-talk
>> 
>> ___
>> OSRM-talk mailing list
>> OSRM-talk@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/osrm-talk
> 
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
> 
> 
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] How to disable all ferry routes?

2015-11-11 Thread Daniel Hofmann
Let me show you how you can find out more about specific variables like
mode_ferry:

your best bet is to search the code base, for example, see this initial
search for mode_ferry:

https://github.com/Project-OSRM/osrm-backend/search?utf8=%E2%9C%93&q=mode_ferry&type=Code

you can see how we set result.forward_mode and result.backward_mode to
mode_ferry there, so let's search for forward_mode:

https://github.com/Project-OSRM/osrm-backend/search?utf8=%E2%9C%93&q=forward_mode&type=Code

this gives us some lua profiles, which we ignore, since we want to see how
the OSRM implementation uses forward_mode and backward_mode; the last
search hit is scripting_environment.cpp:

https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/extractor/scripting_environment.cpp#L121-L124

this is where we expose the ExtractionWay's set_forward_mode and
set_backward_mode member functions, aliasing them to the lua properties
forward_mode and backward_mode --- so let's go on searching for the
ExtractionWay type:

https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/extractor/extraction_way.hpp#L112-L115

in those member functions, the forward_travel_mode and backward_travel_mode
are set accordingly. If you check their types a few lines below in the
member attribute declarations, you will see they are of type TravelMode.
And here it is:

https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/data_structures/travel_mode.hpp#L34-L35

a quick search for TRAVEL_MODE_INACCESSIBLE reveals the following line in
the extractor:

https://github.com/Project-OSRM/osrm-backend/blob/9ef1f8cba31ec8323b357d233f1c552b1c7c9e09/extractor/extractor_callbacks.cpp#L95-L99

where ways are discarded, if they are inaccessible! Tada!


As you can see, even though it is quite a bit of effort tracing back
specific variables, it can be done in a few minutes with only the most
basic tools (I did this entirely using the Github search functionality ---
of course you can use grep or your code browser of choice, too).

Hope that helps,
Daniel J H

On Wed, Nov 11, 2015 at 7:06 PM, Richard Marsden  wrote:

> By coincidence I was working through the lua scripts trying to understand
> them.
>
> So what is the significance of the 1,2,3?  Just unique identifiers. As
> long as they're non-zero, they will be enabled?
>
> Richard
>
>
> On Nov 11, 2015, at 9:23 AM, Daniel Hofmann  wrote:
>
> If you take a look at the car profile, you will see a ferry_mode variable,
> that sets the travel mode:
>
>
> https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/profiles/car.lua#L151
>
> If you set this to 0 (i.e. 'inaccessible") as defined here:
>
>
> https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/data_structures/travel_mode.hpp#L34-L35
>
> then the extractor discards ferry routes because you marked them
> inaccessible.
>
> On Wed, Nov 11, 2015 at 9:03 AM, Peter Becker  wrote:
>
>> Hello, i dont want any ferries in my routes. Is this possible?
>>
>> ___
>> OSRM-talk mailing list
>> OSRM-talk@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/osrm-talk
>>
>
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>
>
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>
>
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] How to disable all ferry routes?

2015-11-11 Thread Richard Marsden
By coincidence I was working through the lua scripts trying to understand them.

So what is the significance of the 1,2,3?  Just unique identifiers. As long as 
they're non-zero, they will be enabled?

Richard

On Nov 11, 2015, at 9:23 AM, Daniel Hofmann  wrote:

> If you take a look at the car profile, you will see a ferry_mode variable, 
> that sets the travel mode:
> 
> https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/profiles/car.lua#L151
> 
> If you set this to 0 (i.e. 'inaccessible") as defined here:
> 
> https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/data_structures/travel_mode.hpp#L34-L35
> 
> then the extractor discards ferry routes because you marked them inaccessible.
> 
> On Wed, Nov 11, 2015 at 9:03 AM, Peter Becker  wrote:
> Hello, i dont want any ferries in my routes. Is this possible?
> 
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
> 
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Extended graph output file

2015-11-11 Thread Daniel Patterson
Sorry, autocorrect modified my last email.  To enable, do: `cmake 
-DDEBUG_GEOMETRY=ON ..`

daniel

> On Nov 11, 2015, at 5:22 PM, Sotorrio, Pedro  wrote:
> 
> Thanks, Daniel!
> 
> —Pedro
> 
> From: Daniel Patterson mailto:dan...@mapbox.com>>
> Reply-To: Mailing list to discuss Project OSRM  >
> Date: Wednesday, November 11, 2015 at 2:16 PM
> To: Mailing list to discuss Project OSRM  >
> Subject: Re: [OSRM-talk] Extended graph output file
> 
> Pedro,
> 
>   There is some work-in-progress on the `edge_segment_lookup` branch that can 
> give you some insight.  If you enable the `-DDEBUG_GEOMETRY` flag with 
> `make`, then `osrm-extract` and `osrm-prepare` can be instructed (with a new 
> command-line parameter) to dump out some geometry information in GeoJSON 
> format.
> 
>   `osrm-extract` will dump out turn and stop-sign penalties with coordinates 
> and bearings.
>   `osrm-prepare` will dump out individual segment weights (deciseconds) and 
> speed values used in the final routing graph.
> 
>   It's not super-easy to use, but it gives complete insight into the routing 
> graph in a visual form.  You can load the files into QGIS for visualization.
> 
> daniel
> 
> 
>> On Nov 11, 2015, at 4:32 PM, Sotorrio, Pedro > > wrote:
>> 
>> Thanks a lot, Daniel!
>> 
>> —Pedro
>> 
>> From: Daniel Hofmann mailto:hofm...@mapbox.com>>
>> Reply-To: Mailing list to discuss Project OSRM > >
>> Date: Wednesday, November 11, 2015 at 1:26 PM
>> To: Mailing list to discuss Project OSRM > >
>> Subject: Re: [OSRM-talk] Extended graph output file
>> 
>> The edge-expanded graph already gets written to disk; this was introduced in 
>> the following commit:
>> 
>> https://github.com/Project-OSRM/osrm-backend/commit/e45656e5bfb0b61a2859f0c754e66322996f1640
>>  
>> 
>> 
>> which is not yet in the latest release, so you have to build from the 
>> develop branch.
>> 
>> 
>> If you search for ebg you will see related files:
>> 
>> https://github.com/Project-OSRM/osrm-backend/search?utf8=%E2%9C%93&q=ebg 
>> 
>> 
>> 
>> Word of caution: the serialization in OSRM is done by just dumping internal 
>> datastructures in binary format.
>> This is neither a portable between operating systems, compilers or even 
>> standard libraries, nor a stable format, and in particular not intended to 
>> be read from other programs.
>> You would have to get the data structure layout right, in order to make use 
>> of the ebg file from other programs.
>> 
>> On Wed, Nov 11, 2015 at 4:15 PM, Sotorrio, Pedro > > wrote:
>>> Hello,
>>> 
>>> I’m new in OSRM but my understanding is that the graph output file in OSRM 
>>> is a binary file, correct?
>>> 
>>> Is there a way to write out the edged expanded graph (with turns) to a 
>>> readable file?
>>> 
>>> Thanks a lot in advance,
>>> 
>>> Pedro
>>> 
>>> 
>>> 
>>> ___
>>> OSRM-talk mailing list
>>> OSRM-talk@openstreetmap.org 
>>> https://lists.openstreetmap.org/listinfo/osrm-talk 
>>> 
>>> 
>> 
>> ___
>> OSRM-talk mailing list
>> OSRM-talk@openstreetmap.org 
>> https://lists.openstreetmap.org/listinfo/osrm-talk 
>> 
> 
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Extended graph output file

2015-11-11 Thread Sotorrio, Pedro
Thanks, Daniel!

—Pedro

From: Daniel Patterson mailto:dan...@mapbox.com>>
Reply-To: Mailing list to discuss Project OSRM 
mailto:osrm-talk@openstreetmap.org>>
Date: Wednesday, November 11, 2015 at 2:16 PM
To: Mailing list to discuss Project OSRM 
mailto:osrm-talk@openstreetmap.org>>
Subject: Re: [OSRM-talk] Extended graph output file

Pedro,

  There is some work-in-progress on the `edge_segment_lookup` branch that can 
give you some insight.  If you enable the `-DDEBUG_GEOMETRY` flag with `make`, 
then `osrm-extract` and `osrm-prepare` can be instructed (with a new 
command-line parameter) to dump out some geometry information in GeoJSON format.

  `osrm-extract` will dump out turn and stop-sign penalties with coordinates 
and bearings.
  `osrm-prepare` will dump out individual segment weights (deciseconds) and 
speed values used in the final routing graph.

  It's not super-easy to use, but it gives complete insight into the routing 
graph in a visual form.  You can load the files into QGIS for visualization.

daniel


On Nov 11, 2015, at 4:32 PM, Sotorrio, Pedro 
mailto:sotorr...@llnl.gov>> wrote:

Thanks a lot, Daniel!

—Pedro

From: Daniel Hofmann mailto:hofm...@mapbox.com>>
Reply-To: Mailing list to discuss Project OSRM 
mailto:osrm-talk@openstreetmap.org>>
Date: Wednesday, November 11, 2015 at 1:26 PM
To: Mailing list to discuss Project OSRM 
mailto:osrm-talk@openstreetmap.org>>
Subject: Re: [OSRM-talk] Extended graph output file

The edge-expanded graph already gets written to disk; this was introduced in 
the following commit:

https://github.com/Project-OSRM/osrm-backend/commit/e45656e5bfb0b61a2859f0c754e66322996f1640

which is not yet in the latest release, so you have to build from the develop 
branch.


If you search for ebg you will see related files:

https://github.com/Project-OSRM/osrm-backend/search?utf8=%E2%9C%93&q=ebg


Word of caution: the serialization in OSRM is done by just dumping internal 
datastructures in binary format.
This is neither a portable between operating systems, compilers or even 
standard libraries, nor a stable format, and in particular not intended to be 
read from other programs.
You would have to get the data structure layout right, in order to make use of 
the ebg file from other programs.

On Wed, Nov 11, 2015 at 4:15 PM, Sotorrio, Pedro 
mailto:sotorr...@llnl.gov>> wrote:
Hello,

I’m new in OSRM but my understanding is that the graph output file in OSRM is a 
binary file, correct?

Is there a way to write out the edged expanded graph (with turns) to a readable 
file?

Thanks a lot in advance,

Pedro



___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Extended graph output file

2015-11-11 Thread Daniel Patterson
Pedro,

  There is some work-in-progress on the `edge_segment_lookup` branch that can 
give you some insight.  If you enable the `-DDEBUG_GEOMETRY` flag with `make`, 
then `osrm-extract` and `osrm-prepare` can be instructed (with a new 
command-line parameter) to dump out some geometry information in GeoJSON format.

  `osrm-extract` will dump out turn and stop-sign penalties with coordinates 
and bearings.
  `osrm-prepare` will dump out individual segment weights (deciseconds) and 
speed values used in the final routing graph.

  It's not super-easy to use, but it gives complete insight into the routing 
graph in a visual form.  You can load the files into QGIS for visualization.

daniel


> On Nov 11, 2015, at 4:32 PM, Sotorrio, Pedro  wrote:
> 
> Thanks a lot, Daniel!
> 
> —Pedro
> 
> From: Daniel Hofmann mailto:hofm...@mapbox.com>>
> Reply-To: Mailing list to discuss Project OSRM  >
> Date: Wednesday, November 11, 2015 at 1:26 PM
> To: Mailing list to discuss Project OSRM  >
> Subject: Re: [OSRM-talk] Extended graph output file
> 
> The edge-expanded graph already gets written to disk; this was introduced in 
> the following commit:
> 
> https://github.com/Project-OSRM/osrm-backend/commit/e45656e5bfb0b61a2859f0c754e66322996f1640
>  
> 
> 
> which is not yet in the latest release, so you have to build from the develop 
> branch.
> 
> 
> If you search for ebg you will see related files:
> 
> https://github.com/Project-OSRM/osrm-backend/search?utf8=%E2%9C%93&q=ebg 
> 
> 
> 
> Word of caution: the serialization in OSRM is done by just dumping internal 
> datastructures in binary format.
> This is neither a portable between operating systems, compilers or even 
> standard libraries, nor a stable format, and in particular not intended to be 
> read from other programs.
> You would have to get the data structure layout right, in order to make use 
> of the ebg file from other programs.
> 
> On Wed, Nov 11, 2015 at 4:15 PM, Sotorrio, Pedro  > wrote:
>> Hello,
>> 
>> I’m new in OSRM but my understanding is that the graph output file in OSRM 
>> is a binary file, correct?
>> 
>> Is there a way to write out the edged expanded graph (with turns) to a 
>> readable file?
>> 
>> Thanks a lot in advance,
>> 
>> Pedro
>> 
>> 
>> 
>> ___
>> OSRM-talk mailing list
>> OSRM-talk@openstreetmap.org 
>> https://lists.openstreetmap.org/listinfo/osrm-talk 
>> 
>> 
> 
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Extended graph output file

2015-11-11 Thread Sotorrio, Pedro
Thanks a lot, Daniel!

—Pedro

From: Daniel Hofmann mailto:hofm...@mapbox.com>>
Reply-To: Mailing list to discuss Project OSRM 
mailto:osrm-talk@openstreetmap.org>>
Date: Wednesday, November 11, 2015 at 1:26 PM
To: Mailing list to discuss Project OSRM 
mailto:osrm-talk@openstreetmap.org>>
Subject: Re: [OSRM-talk] Extended graph output file

The edge-expanded graph already gets written to disk; this was introduced in 
the following commit:

https://github.com/Project-OSRM/osrm-backend/commit/e45656e5bfb0b61a2859f0c754e66322996f1640

which is not yet in the latest release, so you have to build from the develop 
branch.


If you search for ebg you will see related files:

https://github.com/Project-OSRM/osrm-backend/search?utf8=%E2%9C%93&q=ebg


Word of caution: the serialization in OSRM is done by just dumping internal 
datastructures in binary format.
This is neither a portable between operating systems, compilers or even 
standard libraries, nor a stable format, and in particular not intended to be 
read from other programs.
You would have to get the data structure layout right, in order to make use of 
the ebg file from other programs.

On Wed, Nov 11, 2015 at 4:15 PM, Sotorrio, Pedro 
mailto:sotorr...@llnl.gov>> wrote:
Hello,

I’m new in OSRM but my understanding is that the graph output file in OSRM is a 
binary file, correct?

Is there a way to write out the edged expanded graph (with turns) to a readable 
file?

Thanks a lot in advance,

Pedro



___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Extended graph output file

2015-11-11 Thread Daniel Hofmann
The edge-expanded graph already gets written to disk; this was introduced
in the following commit:

https://github.com/Project-OSRM/osrm-backend/commit/e45656e5bfb0b61a2859f0c754e66322996f1640

which is not yet in the latest release, so you have to build from the
develop branch.


If you search for ebg you will see related files:

https://github.com/Project-OSRM/osrm-backend/search?utf8=%E2%9C%93&q=ebg


Word of caution: the serialization in OSRM is done by just dumping internal
datastructures in binary format.
This is neither a portable between operating systems, compilers or even
standard libraries, nor a stable format, and in particular not intended to
be read from other programs.
You would have to get the data structure layout right, in order to make use
of the ebg file from other programs.

On Wed, Nov 11, 2015 at 4:15 PM, Sotorrio, Pedro  wrote:

> Hello,
>
> I’m new in OSRM but my understanding is that the graph output file in OSRM
> is a binary file, correct?
>
> Is there a way to write out the edged expanded graph (with turns) to a
> readable file?
>
> Thanks a lot in advance,
>
> Pedro
>
>
>
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>
>
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


[OSRM-talk] Extended graph output file

2015-11-11 Thread Sotorrio, Pedro
Hello,

I’m new in OSRM but my understanding is that the graph output file in OSRM is a 
binary file, correct?

Is there a way to write out the edged expanded graph (with turns) to a readable 
file?

Thanks a lot in advance,

Pedro


___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] URL Parameters

2015-11-11 Thread MapsMarker.com
Hi Daniel,

thanks for the link to details - I guess the best long-term approach will be
to set up my own OSRM instance, anyway this will still need some time...

best,

Robert

 

 

Hi Robert,
 
  See https://github.com/Project-OSRM/osrm-backend/wiki/Api-usage-policy
 for our
published policy on this.  The service you can access publicly is a *demo*
service, and can change at any time, for any reason.
 
  If your customers need a reliable routing service, there are numerous
OSRM-based routing services that can offer API stability and an SLA.  You
could offer those integrated into your commercial Wordpress plugin.  You
could host your own OSRM instance as well.
 
daniel

 

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] URL parameters for

2015-11-11 Thread MapsMarker.com
Hi Patrick,

 

too bad to hear that. When I started coding my plugin in 2011, there was no
commercial version available yet when I added map.project-osrm.org as
directions provider and that parts of the code were not changed since then &
also used within the pro version. Personally I thought that this was
actually a win-win-situation - especially with regards of the number of
overall user, growing steadily over the last years (~50.000 active users
currently) which got to know map.project-osrm.org through the usage of my
plugins.  Anyway it could help others in similar situations, if the info
about commercial usage would be available directly on
http://map.project-osrm.org/.

 

As requested I will remove map.project-osrm.org as directions provider from
all of my plugins (as they share the code for directions provider) with the
next release, to be released probably next week & refrain from any linking
to the project.

 

best,

 

Robert

 

 

Message: 5

Date: Wed, 11 Nov 2015 20:08:16 +0100

From: Patrick Niklaus mailto:patrick.nikl...@student.kit.edu> >

To: Mailing list to discuss Project OSRM mailto:osrm-talk@openstreetmap.org> >

Subject: Re: [OSRM-talk] URL parameters for

Message-ID:

 
mailto:cafxp+1pm7wqnnf286s4puhuqwkj686wt0hrjtbqlgxyf6th...@mail.gmail.com>
>

Content-Type: text/plain; charset=UTF-8

 

Mapsmarker.com seems to be a commercial service. We only offer access to the
demo server for non-commercial services. Please remove OSRM from your
commercial service and refrain from linking `map.project-osrm.org` or using
`router.project-osrm.org`.

 

Thank you,

Patrick

 

 

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] URL parameters for

2015-11-11 Thread Daniel Patterson
Hi Robert,

  See https://github.com/Project-OSRM/osrm-backend/wiki/Api-usage-policy 
 for our 
published policy on this.  The service you can access publicly is a *demo* 
service, and can change at any time, for any reason.

  If your customers need a reliable routing service, there are numerous 
OSRM-based routing services that can offer API stability and an SLA.  You could 
offer those integrated into your commercial Wordpress plugin.  You could host 
your own OSRM instance as well.

daniel

> On Nov 11, 2015, at 1:07 PM, MapsMarker.com  wrote:
> 
> Thanks for the prompt reply Daniel! I added support for map.project-osrm.org 
>  when I created my plugins back in 2012 - 
> havent changed the implementation in the meantime, just got notified by users 
> that it is not working anymore, so I am trying to fix this.
>  
> Regarding LRM: I am aware of that plugin & have been playing around with it 
> for a while - anyway it will still take some time, until I can offer 
> directions directly within my plugin - until this is possible, I want to give 
> my users the possibility to link to third-party directions provider. See demo 
> settings panel at 
> https://demo.mapsmarker.com/wp-admin/admin.php?page=leafletmapsmarker_settings#lmm-directions
>  
> 
> best,
>  
> Robert
>  
>  
> Message: 6
> Date: Wed, 11 Nov 2015 12:54:10 -0500
> From: Daniel Patterson mailto:dan...@mapbox.com>>
> To: Mailing list to discuss Project OSRM  >
> Subject: Re: [OSRM-talk] URL parameters for
> http://map.project-osrm.org  -   
> supporting end point only?
> Message-ID: <89d7a253-49df-4edb-8e76-7b536d8d6...@mapbox.com 
> >
> Content-Type: text/plain; charset="utf-8"
> 
> Hi Robert,
> 
>   http://map.project-orsm.org/  
> > isn't really 
> intended for linking to like your'e describing.  It's more of a demo 
> interface to OSRM itself.
> 
>   Have you explored using LRM (Leaflet Routing Machine) 
> http://www.liedman.net/leaflet-routing-machine/ 
>   > and drawing routes on 
> your own Leaflet  ?
> 
> daniel
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org 
> https://lists.openstreetmap.org/listinfo/osrm-talk 
> 
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] URL parameters for

2015-11-11 Thread Patrick Niklaus
Mapsmarker.com seems to be a commercial service. We only offer access
to the demo server for non-commercial services. Please remove OSRM
from your commercial service and refrain from linking
`map.project-osrm.org` or using `router.project-osrm.org`.

Thank you,
Patrick

On Wed, Nov 11, 2015 at 7:07 PM, MapsMarker.com  wrote:
> Thanks for the prompt reply Daniel! I added support for map.project-osrm.org
> when I created my plugins back in 2012 - havent changed the implementation
> in the meantime, just got notified by users that it is not working anymore,
> so I am trying to fix this.
>
>
>
> Regarding LRM: I am aware of that plugin & have been playing around with it
> for a while - anyway it will still take some time, until I can offer
> directions directly within my plugin - until this is possible, I want to
> give my users the possibility to link to third-party directions provider.
> See demo settings panel at
> https://demo.mapsmarker.com/wp-admin/admin.php?page=leafletmapsmarker_settings#lmm-directions
>
> best,
>
>
>
> Robert
>
>
>
>
>
> Message: 6
> Date: Wed, 11 Nov 2015 12:54:10 -0500
> From: Daniel Patterson 
> To: Mailing list to discuss Project OSRM 
> Subject: Re: [OSRM-talk] URL parameters for
> http://map.project-osrm.org -   supporting end point only?
> Message-ID: <89d7a253-49df-4edb-8e76-7b536d8d6...@mapbox.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Robert,
>
>   http://map.project-orsm.org/  isn't really
> intended for linking to like your'e describing.  It's more of a demo
> interface to OSRM itself.
>
>   Have you explored using LRM (Leaflet Routing Machine)
> http://www.liedman.net/leaflet-routing-machine/
>  and drawing routes on your
> own Leaflet  ?
>
> daniel
>
>
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Some OSRM Match questions

2015-11-11 Thread Artur Bialecki

I'm not sure how --max-matching-size works. I'm running osrm-routed  (v4.8.1) 
without any options and I’m successfully matching a trip with 815 locations.

Artur...

-Original Message-
From: Paul Friedman [mailto:paul.fried...@streetlightdata.com]
Sent: Wednesday, November 11, 2015 1:29 PM
To: osrm-talk@openstreetmap.org
Subject: Re: [OSRM-talk] Some OSRM Match questions

Sorry, wrong subject line.  Reposting to link the thread.

I'm also starting to use this API (and completely love the results).

It appears the default for –max-matching-size is 2.  Is there a reason the 
limit is so low (or is it even enforced?)?  Thanks.

---Paul

-Original Message-
Date: Wed, 11 Nov 2015 00:07:32 +0100
From: Patrick Niklaus 
To: Mailing list to discuss Project OSRM 
Subject: Re: [OSRM-talk] Some OSRM Match questions
Message-ID:

Content-Type: text/plain; charset=UTF-8

> Which is the recommended way?

Increase the locations limit. Stitching together split traces might not yield 
the expected result (start/end points at the split don't have to match). In 
general the more data you provide, the better the algorithm is able to work.

> Are the timestamps used as part of the Hidden-Markov-Model algorithm?

They don't influence the emission probabilities or transition probabilities, 
but are used for detecting outliers and gaps (simple example is driving through 
a tunnel). You should provide the data if you have it.

> In my response to a match query I’m getting hint_data.

You can use hint_data as additional input to viaroute. It enables unambiguous 
coordinate snapping (important if you want to match first and then extract 
additional information). As with viaroute it cannot be turned off (also adds no 
real overhead anyway).



On Tue, Nov 10, 2015 at 10:01 PM, Artur Bialecki 
wrote:
>
>
> Hello,
>
>
>
> I’m new to OSRM and I have few question regarding the map matching API.
>
> I’m using version v4.8.1.
>
>
>
> If I have a trip with 1000 locations, what are the implications of
> setting
>
> –max-matching-size option of osrm-routed as oppose to splitting the
> trip
>
> into 10 requests with 100 locations each and stitching together the
> responses?
>
> Which is the recommended way?
>
>
>
> The match API takes locations and optional timestamps for each location.
>
> Are the timestamps used as part of the Hidden-Markov-Model algorithm?
>
> Is the match quality or performance affected when using the timestamps?
>
>
>
> In my response to a match query I’m getting hint_data.
>
> The API documentation does not mention this. Is hint_data usable for
> match
>
> requests? If so how? If not, now do I turn it off?
>
>
>
> Is there a way to turn off logging of requests by osrm-routed, other
> than sending them to /dev/null?
>
>
>
> Is there any documentation on using profile.lua?
>
>
>
> Thank you.
>
>
>
> Artur Bialecki.
>
>
>
>
>
>
>
> This e-mail message is confidential, may be privileged and is intended
> for the exclusive use of the addressee. Any other person is strictly
> prohibited from disclosing, distributing or reproducing it. If the
> addressee cannot be reached or is unknown to you, please inform us
> immediately and delete this e-mail message and destroy all copies.
> Thank you.
>
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk
This e-mail message is confidential, may be privileged and is intended for the 
exclusive use of the addressee. Any other person is strictly prohibited from 
disclosing, distributing or reproducing it. If the addressee cannot be reached 
or is unknown to you, please inform us immediately and delete this e-mail 
message and destroy all copies. Thank you.
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Some OSRM Match questions

2015-11-11 Thread Paul Friedman
Sorry, wrong subject line.  Reposting to link the thread.

I'm also starting to use this API (and completely love the results).

It appears the default for –max-matching-size is 2.  Is there a reason the
limit is so low (or is it even enforced?)?  Thanks.

---Paul

-Original Message-
Date: Wed, 11 Nov 2015 00:07:32 +0100
From: Patrick Niklaus 
To: Mailing list to discuss Project OSRM 
Subject: Re: [OSRM-talk] Some OSRM Match questions
Message-ID:

Content-Type: text/plain; charset=UTF-8

> Which is the recommended way?

Increase the locations limit. Stitching together split traces might not
yield the expected result (start/end points at the split don't have to
match). In general the more data you provide, the better the algorithm is
able to work.

> Are the timestamps used as part of the Hidden-Markov-Model algorithm?

They don't influence the emission probabilities or transition probabilities,
but are used for detecting outliers and gaps (simple example is driving
through a tunnel). You should provide the data if you have it.

> In my response to a match query I’m getting hint_data.

You can use hint_data as additional input to viaroute. It enables
unambiguous coordinate snapping (important if you want to match first and
then extract additional information). As with viaroute it cannot be turned
off (also adds no real overhead anyway).



On Tue, Nov 10, 2015 at 10:01 PM, Artur Bialecki 
wrote:
>
>
> Hello,
>
>
>
> I’m new to OSRM and I have few question regarding the map matching API.
>
> I’m using version v4.8.1.
>
>
>
> If I have a trip with 1000 locations, what are the implications of
> setting
>
> –max-matching-size option of osrm-routed as oppose to splitting the
> trip
>
> into 10 requests with 100 locations each and stitching together the
> responses?
>
> Which is the recommended way?
>
>
>
> The match API takes locations and optional timestamps for each location.
>
> Are the timestamps used as part of the Hidden-Markov-Model algorithm?
>
> Is the match quality or performance affected when using the timestamps?
>
>
>
> In my response to a match query I’m getting hint_data.
>
> The API documentation does not mention this. Is hint_data usable for
> match
>
> requests? If so how? If not, now do I turn it off?
>
>
>
> Is there a way to turn off logging of requests by osrm-routed, other
> than sending them to /dev/null?
>
>
>
> Is there any documentation on using profile.lua?
>
>
>
> Thank you.
>
>
>
> Artur Bialecki.
>
>
>
>
>
>
>
> This e-mail message is confidential, may be privileged and is intended
> for the exclusive use of the addressee. Any other person is strictly
> prohibited from disclosing, distributing or reproducing it. If the
> addressee cannot be reached or is unknown to you, please inform us
> immediately and delete this e-mail message and destroy all copies. Thank
> you.
>
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] URL parameters for

2015-11-11 Thread MapsMarker.com
Thanks for the prompt reply Daniel! I added support for map.project-osrm.org
when I created my plugins back in 2012 - havent changed the implementation
in the meantime, just got notified by users that it is not working anymore,
so I am trying to fix this.

 

Regarding LRM: I am aware of that plugin & have been playing around with it
for a while - anyway it will still take some time, until I can offer
directions directly within my plugin - until this is possible, I want to
give my users the possibility to link to third-party directions provider.
See demo settings panel at
https://demo.mapsmarker.com/wp-admin/admin.php?page=leafletmapsmarker_settin
gs#lmm-directions

best,

 

Robert

 

 

Message: 6
Date: Wed, 11 Nov 2015 12:54:10 -0500
From: Daniel Patterson mailto:dan...@mapbox.com> >
To: Mailing list to discuss Project OSRM mailto:osrm-talk@openstreetmap.org> >
Subject: Re: [OSRM-talk] URL parameters for
http://map.project-osrm.org -   supporting end point only?
Message-ID: <89d7a253-49df-4edb-8e76-7b536d8d6...@mapbox.com
 >
Content-Type: text/plain; charset="utf-8"

Hi Robert,

  http://map.project-orsm.org/  isn't really
intended for linking to like your'e describing.  It's more of a demo
interface to OSRM itself.

  Have you explored using LRM (Leaflet Routing Machine)
http://www.liedman.net/leaflet-routing-machine/
 and drawing routes on your
own Leaflet  ?

daniel

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] OSRM-talk Digest, Vol 35, Issue 7

2015-11-11 Thread Paul Friedman
I'm also starting to use this API (and completely love the results).

It appears the default for –max-matching-size is 2.  Is there a reason the
limit is so low (or is it even enforced?)?  Thanks.

---Paul

-Original Message-
Date: Wed, 11 Nov 2015 00:07:32 +0100
From: Patrick Niklaus 
To: Mailing list to discuss Project OSRM 
Subject: Re: [OSRM-talk] Some OSRM Match questions
Message-ID:

Content-Type: text/plain; charset=UTF-8

> Which is the recommended way?

Increase the locations limit. Stitching together split traces might not
yield the expected result (start/end points at the split don't have to
match). In general the more data you provide, the better the algorithm is
able to work.

> Are the timestamps used as part of the Hidden-Markov-Model algorithm?

They don't influence the emission probabilities or transition probabilities,
but are used for detecting outliers and gaps (simple example is driving
through a tunnel). You should provide the data if you have it.

> In my response to a match query I’m getting hint_data.

You can use hint_data as additional input to viaroute. It enables
unambiguous coordinate snapping (important if you want to match first and
then extract additional information). As with viaroute it cannot be turned
off (also adds no real overhead anyway).



On Tue, Nov 10, 2015 at 10:01 PM, Artur Bialecki 
wrote:
>
>
> Hello,
>
>
>
> I’m new to OSRM and I have few question regarding the map matching API.
>
> I’m using version v4.8.1.
>
>
>
> If I have a trip with 1000 locations, what are the implications of
> setting
>
> –max-matching-size option of osrm-routed as oppose to splitting the
> trip
>
> into 10 requests with 100 locations each and stitching together the
> responses?
>
> Which is the recommended way?
>
>
>
> The match API takes locations and optional timestamps for each location.
>
> Are the timestamps used as part of the Hidden-Markov-Model algorithm?
>
> Is the match quality or performance affected when using the timestamps?
>
>
>
> In my response to a match query I’m getting hint_data.
>
> The API documentation does not mention this. Is hint_data usable for
> match
>
> requests? If so how? If not, now do I turn it off?
>
>
>
> Is there a way to turn off logging of requests by osrm-routed, other
> than sending them to /dev/null?
>
>
>
> Is there any documentation on using profile.lua?
>
>
>
> Thank you.
>
>
>
> Artur Bialecki.
>
>
>
>
>
>
>
> This e-mail message is confidential, may be privileged and is intended
> for the exclusive use of the addressee. Any other person is strictly
> prohibited from disclosing, distributing or reproducing it. If the
> addressee cannot be reached or is unknown to you, please inform us
> immediately and delete this e-mail message and destroy all copies. Thank
> you.
>
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] URL parameters for http://map.project-osrm.org - supporting end point only?

2015-11-11 Thread Daniel Patterson
Hi Robert,

  http://map.project-orsm.org/  isn't really 
intended for linking to like your'e describing.  It's more of a demo interface 
to OSRM itself.

  Have you explored using LRM (Leaflet Routing Machine) 
http://www.liedman.net/leaflet-routing-machine/ 
 and drawing routes on your 
own Leaflet  ?

daniel

> On Nov 11, 2015, at 12:47 PM, MapsMarker.com  wrote:
> 
> Hello,
> 
> I am the developer of the WordPress mapping plugins Leaflet Maps Marker 
> (https://wordpress.org/plugins/leaflet-maps-marker/ 
> ) and Maps Marker Pro 
> (https://www.mapsmarker.com ). Both plugins 
> include support for different directions providers - one of them is OSRM and 
> directions links are linking directly to map.project-osrm.org 
> . I noticed that the URL schema I used so far 
> seemed to have changed and the map is now always centered on Washington 
> (example link produced by my plugin currently: 
> http://map.project-osrm.org/?hl=en&loc=48.292787,16.092911&df=0 
> )
> 
> I did some research and found that the URL parameters have changed and that 
> new parameters like "center" are required.
> 
> Anyway I am having issues supporting the new URL scheme, because I only want 
> to set the end point for directions as I do not know where the user wants to 
> start. I tried this by using the following URL for example:
> http://map.project-osrm.org/?z=13¢er=48.242330%2C16.433030&loc=48.242330%2C16.433030&loc=&hl=en&ly=&alt=&df=&srv=
>  
> 
> The main issue is that if only 1 loc parameter is set, the input form field 
> for start point remains empty, resulting in a non usable link for my plugin 
> users.
> 
> The current workaround for this issue is to set both loc parameters to the 
> same lat+lon values (like 
> http://map.project-osrm.org/?z=13¢er=48.242330%2C16.433030&loc=48.242330%2C16.433030&loc=48.242330%2C16.433030&hl=en&ly=&alt=&df=&srv=
>  
> )
>  - this results in start+end point form fields being populated - anyway this 
> is suboptimal, as the user has to delete the start form field and enter where 
> he wants to start.
> 
> I searched the wiki but couldnt find a way how this could be solved. Is there 
> a way to use a URL like 
> http://map.project-osrm.org/?z=13¢er=48.242330%2C16.433030&loc=48.242330%2C16.433030&loc=&hl=en&ly=&alt=&df=&srv=
>  
> 
>  with only 1 loc parameter set which prefills the endpoint for directions so 
> that the user only has to set the start point for directions? If not, is 
> there a chance that the site gets updated to support that?
> 
> Any help would really be appreciated!
> best,
> 
> Robert
>  
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org 
> https://lists.openstreetmap.org/listinfo/osrm-talk 
> 
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


[OSRM-talk] URL parameters for http://map.project-osrm.org - supporting end point only?

2015-11-11 Thread MapsMarker.com
Hello,

I am the developer of the WordPress mapping plugins Leaflet Maps Marker
(https://wordpress.org/plugins/leaflet-maps-marker/) and Maps Marker Pro
(https://www.mapsmarker.com). Both plugins include support for different
directions providers - one of them is OSRM and directions links are linking
directly to map.project-osrm.org  . I noticed
that the URL schema I used so far seemed to have changed and the map is now
always centered on Washington (example link produced by my plugin currently:
http://map.project-osrm.org/?hl=en

&loc=48.292787,16.092911&df=0)

I did some research and found that the URL parameters have changed and that
new parameters like "center" are required.

Anyway I am having issues supporting the new URL scheme, because I only want
to set the end point for directions as I do not know where the user wants to
start. I tried this by using the following URL for example:
http://map.project-osrm.org/?z=13

¢er=48.242330%2C16.433030&loc=48.242330%2C16.433030&loc=&hl=en&ly=&alt=&
df=&srv=

The main issue is that if only 1 loc parameter is set, the input form field
for start point remains empty, resulting in a non usable link for my plugin
users.

The current workaround for this issue is to set both loc parameters to the
same lat+lon values (like http://map.project-osrm.org/?z=13

¢er=48.242330%2C16.433030&loc=48.242330%2C16.433030&loc=48.242330%2C16.4
33030&hl=en&ly=&alt=&df=&srv=) - this results in start+end point form fields
being populated - anyway this is suboptimal, as the user has to delete the
start form field and enter where he wants to start.

I searched the wiki but couldnt find a way how this could be solved. Is
there a way to use a URL like http://map.project-osrm.org/?z=13

¢er=48.242330%2C16.433030&loc=48.242330%2C16.433030&loc=&hl=en&ly=&alt=&
df=&srv= with only 1 loc parameter set which prefills the endpoint for
directions so that the user only has to set the start point for directions?
If not, is there a chance that the site gets updated to support that?

Any help would really be appreciated!

best,

Robert

 

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] How to disable all ferry routes?

2015-11-11 Thread Peter Becker
Thank you this works

2015-11-11 16:23 GMT+01:00 Daniel Hofmann :
> If you take a look at the car profile, you will see a ferry_mode variable,
> that sets the travel mode:
>
> https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/profiles/car.lua#L151
>
> If you set this to 0 (i.e. 'inaccessible") as defined here:
>
> https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/data_structures/travel_mode.hpp#L34-L35
>
> then the extractor discards ferry routes because you marked them
> inaccessible.
>
> On Wed, Nov 11, 2015 at 9:03 AM, Peter Becker  wrote:
>>
>> Hello, i dont want any ferries in my routes. Is this possible?
>>
>> ___
>> OSRM-talk mailing list
>> OSRM-talk@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/osrm-talk
>
>
>
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] How to disable all ferry routes?

2015-11-11 Thread Daniel Hofmann
If you take a look at the car profile, you will see a ferry_mode variable,
that sets the travel mode:

https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/profiles/car.lua#L151

If you set this to 0 (i.e. 'inaccessible") as defined here:

https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/data_structures/travel_mode.hpp#L34-L35

then the extractor discards ferry routes because you marked them
inaccessible.

On Wed, Nov 11, 2015 at 9:03 AM, Peter Becker  wrote:

> Hello, i dont want any ferries in my routes. Is this possible?
>
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Some OSRM Match questions

2015-11-11 Thread Daniel Patterson
If you're using osrm-routed, there's no real limit.  That actually screams 
Denial Of Service at me, we should consider implementing something.

Currently, the only limit would be on the client side.

daniel

> On Nov 11, 2015, at 2:25 AM, Sander Deryckere  wrote:
> 
> I think you can also be limited by the maximum length of the url: 
> http://stackoverflow.com/questions/2659952/maximum-length-of-http-get-request 
> 
> If you have 1000 points, each with exact lat-lon, timestamp and hint, you'll 
> easily reach the max. Encoding it as a polyline might help to increase that 
> limit, but I don't know how to pass timestamps and hint data that way.
> 
> Regards,
> Sander
> 
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


[OSRM-talk] How to disable all ferry routes?

2015-11-11 Thread Peter Becker
Hello, i dont want any ferries in my routes. Is this possible?

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk