system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How does gps on my phone know which direction i'm looking at (the little triangle) when using maps app?
gpt
Most smartphones have a compass (magnetometer) in them which can show you where north is. 

The maps app uses data from this sensor to extrapolate your rough orientation and shows it when you look at the map.