DeliveryMetrics.GeoIP (wsdataselect v1.4.0)

Copy Markdown View Source

GeoIP lookups used by delivery metrics.

These wrap the MaxMind (:locus) databases so they can be replaced by a stub in the test environment, avoiding any MaxMind database download.

Summary

Functions

asn_info(clientip)

@spec asn_info(String.t()) :: %{organization: String.t(), asn: integer() | nil}

country_code(clientip)

@spec country_code(String.t()) :: String.t()

geohash(clientip)

@spec geohash(String.t()) :: String.t()