ex_geo v1.1.1 ExGeo View Source
IP geolocation. Simply call ExGeo.lookup(ip)
to fetch a ExGeo.Store.t
struct of
various geographic data for an ip.
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
lookup(ip)
View Source
lookup(binary() | ip_address()) :: {:ok, ExGeo.Result.t()} | {:error, any()}
Looks up geolocation information for a binary or tuple ip
Same as lookup/1
but raises an InvalidIpError
if the ip cannot be parsed or queried