Spatial and social situation-aware transformer-based trajectory prediction of autonomous systems