How does Heap get location data? Table of Contents Heap gets location data by using the geoip2-city database and parsing the IP of the request for the country, region, or city.