For now, we just ping ipinfo. But the goal is to use an opensource DB of IP range -> location like this one 
GitHub
GitHub - sapics/ip-location-db: ip to location database by ASN, GeoFeed, Whois, iptoasn.com, db-ip lite, GeoLite2
ip to location database by ASN, GeoFeed, Whois, iptoasn.com, db-ip lite, GeoLite2 - sapics/ip-location-db