Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad request #6

Closed
mshelman opened this issue Mar 20, 2014 · 5 comments
Closed

bad request #6

mshelman opened this issue Mar 20, 2014 · 5 comments

Comments

@mshelman
Copy link

For certain requests, I am getting '400 Bad Request' using the sample code. For example: http://router.project-osrm.org/viaroute?instructions=true&loc=-122.4,37.78&loc=-122.32,37.93&jsonp=_l_routing_machine_0. Any ideas? The latlngs in the samples display the routes correctly. Thanks

@perliedman
Copy link
Owner

Hm, interesting. I'll check that out, but it sounds like a problem in OSRM.

@mshelman
Copy link
Author

Thanks you for your quick response. Soon after posting, I realized my
mistake: I had switched the lat and lng. Stupid mistake.

But now that it is working I find that the directions are not very helpful.
I am in California and the two points are a large store in Berkeley
(Target) and the Moscone convention center in San Francisco. these are the
directions shown in the control:

I 80, I 80;I 58025 km, 28 minHead southwest250 mContinue southwest on I 80350
mContinue southwest400 mContinue southeast on 8th Street100 mLeft onto
Bryant Street35 mSlight left
450 m

Continue northeast on I 8010 kmContinue north900 mContinue north on I 880100
mContinue north on I 80;I 5805 kmContinue north on I 804 kmContinue north450
mSlight right onto Eastshore Boulevard300 mSlight right onto Hill
Street10 mLeft
onto CA 123200 mContinue northwest on San Pablo Avenue100 mRight onto Knott
Avenue150 mLeft onto Key Boulevard350 mDestination reached0 m

This is confusing and not very specific. it seems to be describing a round
trip. don't know if i am doing something wrong or it is just the
limitations of the library.

anyway, thanks for your help

michael shelman

On Fri, Mar 21, 2014 at 7:19 AM, Per Liedman [email protected]:

Hm, interesting. I'll check that out, but it sounds like a problem in OSRM.


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-38279054
.

@perliedman
Copy link
Owner

The directions can hopefully be improved. There's of course some limits from what you can do with the data returned by OSRM, but I'm pretty certain that it can be turned into something more readable than today.

@mshelman
Copy link
Author

Thanks for the reply, Per. Yes, it seems the data must be there but it must
be a huge job to pull it out. Good luck

On Wed, Mar 26, 2014 at 12:38 AM, Per Liedman [email protected]:

The directions can hopefully be improved. There's of course some limits
from what you can do with the data returned by OSRM, but I'm pretty certain
that it can be turned into something more readable than today.


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-38656664
.

@perliedman
Copy link
Owner

I'm closing this issue since the original problem has been resolved, I opened #9 regarding your comments about improving the directions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants