NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

2
1

I recently added a portion of a bike trail in Florissant, MO to OpenStreetMap. When I query for bicycle directions it does not utilize the bike path. What might I have done wrong?

directions API query: http://open.mapquestapi.com/directions/v1/route?outFormat=json&shapeFormat=raw&generalize=10&from=38.820426%2C-90.336433&unit=m&locale=en_US&enhancedNarrative=false&to=38.790915%2C-90.321824&routeType=bicycle

I would expect the directions to use the sunset trail as seen on the map here: http://www.openstreetmap.org/?box=yes&bbox=-90.36306%2C38.78717%2C-90.31781%2C38.83089

asked 06 Mar '13, 02:50

JARinteractive's gravatar image

JARinteractive
31112
accept rate: 0%

edited 06 Mar '13, 11:00

gormo's gravatar image

gormo
2.9k32660

1

I can get mapquest to use the sunset trail, see http://mapq.st/YcfYma .

Maybe you also have to set advanced routing options for bicycles, as seen on their website ("Favour routes usings trails&paths").

Don't know if they are exposed thru the API, though.

(06 Mar '13, 10:59) gormo

I dont know the mapquest routing but I would guess that the routing routines are not so clever that they always choose the cycleway. Most bicycle routers will not choose that trail because it is twisting and turning and all other roads are straighter and shorter and not forbidden to cycle on (at least that is the way it is mapped there), they will always choose the fastest or shortest route to your destination.

permanent link

answered 06 Mar '13, 08:19

ligfietser's gravatar image

ligfietser
2.9k52757
accept rate: 11%

routeType=bicycle is supposed to prefer bike paths. I also tried adjusting the cyclingRoadFactor parameter and still could not get the API to return a path using the bike route. It seems like there must be something wrong with how I plotted the route.

(07 Mar '13, 01:26) JARinteractive
1

No, the route is fine, as far as i can see (see http://mapq.st/YcfYma ). Probably mapquest does not expose all the routing options through the free api.

(07 Mar '13, 08:06) gormo

MapQuest doesn't even show any of the path that I entered at this point. There was a small portion of the trail already in OSM, which is what is seen in your MapQuest link.

(07 Mar '13, 14:00) JARinteractive
1

Maybe you should have pointed us to the actual way IDs you are talking about.

(07 Mar '13, 14:57) scai ♦

If MapQuest Open only routes along the earlier added Sunset Trail part but not along the recently added one than maybe their routing data still hasn't been updated. I can't find any information about the date of their routing data so I suggest to wait a few more weeks or try to contact them directly. MapQuest is a commercial company and we don't know very much about their internals.

permanent link

answered 07 Mar '13, 15:36

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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:

×290
×95
×85
×41
×28

question asked: 06 Mar '13, 02:50

question was seen: 7,635 times

last updated: 07 Mar '13, 15:36

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum