OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

Announcement

A fix has been applied to the login system for the forums - if you have trouble logging in please contact support@openstreetmap.org with both your forum username and your OpenStreetMap username so we can make sure your accounts are properly linked.

#1 2017-11-13 20:17:40

OutdoorBen
Member
Registered: 2017-11-13
Posts: 4

Requirements for barebones osrm driving directions?

Hi --

Total noob here. Appropriate apologies given, repeatedly, as needed, forever. I have been tasked with building a proof of concept Linux server using CentOS 7 and openstreetmaps to do two things:

   geocoding addresses
   turn by turn driving directions

We want to get rid of some very outdated MapPoint sotware (no-longer-supported) and the non-Linux servers used to run it.

Data will be NorthAmerica only. Our preference is to have everything run from the command-line. No maps, just the absolute minimum of input and output through the software (with parsing as needed, of course) to get: address in, lat/lon out; two lat/lons in, turn-buy turn driving directions out. Automobile traffic only, fastest route.

From what I have read, it sounds like the most basic driving directions setup is to use OSRM as a library (libosrm). However, when I look for basic system requirements, I see daunting numbers like 175GB of RAM. But, it is not clear if this is for the basic library, or maps, or...?

  https://github.com/Project-OSRM/osrm-ba … quirements

So:

1) for libosrm, what is the absolute minimum hardware requirements that I would need to build a proof of concept machine? Can I get away with dramatically less RAM and have the software function just for minimal tests even if it is dog meat slow?

2) I have installed Nominatum on a concept box to use for geocoding. Is there a better barebones geocoding solution out there that will, eventually, run on a high-demand server? Again, command-line driven. Ins and outs. My assumption is parsing large XML files is not the way to go on this (as in a database is better) but I really don't know.

3) Is there anything else you can point me to that will help? While I have seen many, many posts and pages, most are for maps, web servers, or APIs for exiting services on servers run by others. We need to run our own software.

Thanks.

   -Ben

Offline

#2 2017-11-13 21:56:12

SK53
Member
Registered: 2009-01-11
Posts: 309

Re: Requirements for barebones osrm driving directions?

You can't get away from memory requirements for building your OSRM routing model: it's inherent in the whole architecture of the solution. Once built it does not require anything like the memory of the build phase. I believe some folk rent an AWS instance to do the build and then host the completed database themselves.

I cant really speak for or against Nominatim as the geocoder.

One other point is that complete addresses are, at best, patchy in OSM: most of the time this is not too critical, but long named highways without addresses may give suboptimal geocoding results (e.g., at the wrong end of a 2-3 mile highway). On the other hand adding that data to OSM automatically improves the geocoding.

Offline

#3 2017-11-14 20:05:16

stephan75
Member
Registered: 2008-05-28
Posts: 2,682

Re: Requirements for barebones osrm driving directions?

I recommend to have a closer look at the following OSM wikipages:

https://wiki.openstreetmap.org/wiki/Routing with its sub pages about online or offline solutions

Maybe https://wiki.openstreetmap.org/wiki/GraphHopper is an alternative to OSRM?

And see https://wiki.openstreetmap.org/wiki/Search_engines about alternatives or different frontends to Nominatim.

If you need professional help for a short time solution,
see https://wiki.openstreetmap.org/wiki/Com … d_Services

Success?

Offline

#4 2017-11-20 22:54:49

OutdoorBen
Member
Registered: 2017-11-13
Posts: 4

Re: Requirements for barebones osrm driving directions?

Thank you for your replies. Very appreciated. I will look into an AWS instance and the links supplied and let you know what I come up with.

Offline

#5 2017-11-26 23:10:10

OutdoorBen
Member
Registered: 2017-11-13
Posts: 4

Re: Requirements for barebones osrm driving directions?

For driving directions, Graphhopper looks very promising. Very easy to install, The only thing I had to track down was a newer copy of Java. Piece of cake.

I also got a promising recommendation for Photon for geocoding: https://github.com/komoot/photon

Offline

#6 2017-12-14 19:23:05

OutdoorBen
Member
Registered: 2017-11-13
Posts: 4

Re: Requirements for barebones osrm driving directions?

Some Progress!

1. Graphhopper is promising.

US Accuracy: while we have not tested it extensively on a large data set, so far so good.

Processing: plenty fast for our application :-)

2. Photon... ouch....

US Accuracy: Really poor. I ran tests on it using several different sources for addresses. The last was 1807 US addresses. Of those, it failed to geocode 1151 completely. I know that OpenStreets has better EU data than the US. Could that be the issue? Something else? Any suggestions? Not looking good...

Response time: Slow. Best was 0.107739 seconds; worst was a whopping 12.237395 seconds. Average was 0.423390 seconds. Looking around forums, I see suggestions of using SSD drives. But, unless we can get around our preliminary accuracy problems, we likely won't pursue speeding it up.

Anyone have any experience using Photon for US addresses? Or, know of a website that is using it for US geocoding in a real-world production situation other than Komoot (the European company that developed it -- https://www.komoot.de/). Using their front-end at http://photon.komoot.de/, when I throw in some addresses by hand from the failed list, it confirms my findings. In short, it looks like it is not going to work for us for US, but I would appreciate any info on the experience of others. Thanks!

Last edited by OutdoorBen (2017-12-14 19:26:59)

Offline

#7 2017-12-15 12:46:10

Richard
Member
From: Charlbury, UK
Registered: 2007-04-24
Posts: 317
Website

Re: Requirements for barebones osrm driving directions?

SSD is a must for Photon. I've run it on spinning rust, dedicated SSD and virtual machine SSD. Spinning rust response times are terrible. VM SSD is tolerable but inevitably has a startup delay for the first response. Dedicated SSD is much better.

OSM is generally not good at address-level geocoding the world over. It's better in Europe than the US but still not great. Ultimately the reason is that surveying house numbers is really boring and you've got to be a bit broken in the head to want to spend your weekends doing that... wink

You could consider using the TIGER Geocoder that ships as part of PostGIS. Mapzen's Search product uses OpenAddresses data (generally municipal/state) as well as OSM; it's open source so you can install it yourself, though I don't know of anyone who's done that, or you can use their commercial hosted version. And of course there are other commercial services such as Mapbox.

Last edited by Richard (2017-12-15 12:47:08)

Offline

Board footer

Powered by FluxBB