I think that's how ipinfo works: https://ipinfo.io/trace