I'm using San Francisco OSM database, which contains the name of each edge, the id source and id target of each vertex. I need to use the information of the most congested routes in San Francisco, but the problem that i didn't found the information that corresponds the data that i have on my data base. For example: Jackson Street to 16th Avenue Overcrossing is a congested road. On my dataset:
All these vertex have the same name "Jackson Street" and I don't know which one is the vertex that compose the road to "16th Avenue"
ST_Intersects
with proper join conditions might be what you are looking for? also, it seems you used osm2po for the import; theclazz
column encodes the road type, e.g. primary, primary_trunc, etc. (google it, I had the reference somewhere, but no time to look it up...), that might help to limit the edge pool further.