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

Wrong route geometry #702

Closed
jzkazz opened this issue Aug 13, 2013 · 5 comments
Closed

Wrong route geometry #702

jzkazz opened this issue Aug 13, 2013 · 5 comments

Comments

@jzkazz
Copy link

jzkazz commented Aug 13, 2013

Hello,
I tried install OSRM to my PC(ubuntu).
However I'm having problems.
Could you please tell me a solution?

[Software ver.]
Project-OSRM-0.3.4
Project-OSRM-Web-0.1.10

[Procedure]
1 Install OSRM and run as below
osrm-extract usa.osm.pbf
osrm-prepare usa.osrm usa.osrm.restrictions
osrm-routed

2.customize "OSRM.config.js" as below, and view with browser.
ROUTING_ENGINES: [
{ url: 'http://router.project-osrm.org/viaroute',
timestamp: 'http://router.project-osrm.org/timestamp',
metric: 0,
label: 'ENGINE_2',
},

  •   {   url: 'http://192.168.1.141:5000/viaroute',
    
  •       timestamp: 'http://192.168.1.141:5000/timestamp',
    
  •       metric: 0,
    
  •       label: 'ENGINE_3',
    
  •   }
    
    ],

[Issue]

  • When use my local server(192.168.1.141:5000), route geometry appear at the lower left corner of the African continent
  • Route Description is looks no problem.
  • No problem with router.project-osrm.org

[route geometry with my local server]
wrong

[route geometry with router.project-osrm.org]
right

@DennisSchiefer
Copy link

Looks like you have the current common problem with the client and server using a different number of digits for lat/lon coordinates.
If you are using the web frontend 0.1.10, the number of digits should already be set to 6 (check RoutingGeometry.js). I don't know about the server version, though. If it is the newest, it should also use 6.

@DennisOSRM
Copy link
Collaborator

The server is dog-fooding, i.e. it always uses the latest develop branch.

@jzkazz
Copy link
Author

jzkazz commented Aug 13, 2013

Thank you, quick response.
This issue is solved, after I change the number of digits 6 to 5 (RoutingGeometry.js).

And I have one more question.
How to change the number of digits on the server(Project-OSRM-0.3.4) ?
From the same client, I want to use both servers(Local, router.project-osrm.org).

@DennisOSRM
Copy link
Collaborator

You don't need to change anything at the server for now if you can wait a few days till we ship v0.3.5

@jzkazz
Copy link
Author

jzkazz commented Aug 13, 2013

Hi Dennis,
I will wait for v0.3.5. Thank you!

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

3 participants