title: Use OSM for routing in GeoServer (The best practise)
body: <p>I am new in OSM but now I need create application which will use GIS (Geoserver) and will be provide service to get road from point A to point B. </p>
  
  <p>I found some informations about this but I still have any questions.
  My is download open street maps and extract to database (PostgreSQL), and for routing use plugin pgRouting. Next connect db to map server and provide api for clients.</p>
  
  <p>Questions:
  1. Is that correct way?
  2. How osm format could I use for postgre? (osm.pbf? shp.zip?, or something else?)</p>
  
  <p>Thanks for answers</p>