Way ID's in server response

I am using the web app and making a curl request to the server with a .gpx file. The results I get contain trkpts with lat/lon. Is there any way I can also get the way id’s for the road segment on which each trkpt occurs ?