Search for bus/tram stations

I’m writing a web page that analyses GPS tracks.

Now, I want determine if a specific position in the track is near a bus station (or tram station, …). Is there a way to get this data from OpenStreetMap?? And if so, what is the best way?

One starting point for your further investigation can be

Then ask with more details here …

Thanks for the link. Especially this looks very nice:

Looks like I want a query similiar to this:

<bbox-query n="48.145" s="48.135" w="11.568" e="11.592"/>
<has-kv k="railway" v="tram_stop"/>
<print mode="body"/>

Which would mean: Give me all tram stops in the area described by the coords.
But I’m not sure what the correct syntax is.