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.
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.
Is that correct way?
How osm format could I use for postgre? (osm.pbf? shp.zip?, or something else?)