Created
August 16, 2019 16:38
-
-
Save aloukissas/a465fb98994b40287fb52df6bebb22dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iex(1)> Geolix.lookup("45.50.161.38", [as: :raw, where: :country]) | |
%{ | |
continent: %{ | |
code: "NA", | |
geoname_id: 6255149, | |
names: %{ | |
de: "Nordamerika", | |
en: "North America", | |
es: "Norteamérica", | |
fr: "Amérique du Nord", | |
ja: "北アメリカ", | |
"pt-BR": "América do Norte", | |
ru: "Северная Америка", | |
"zh-CN": "北美洲" | |
} | |
}, | |
country: %{ | |
geoname_id: 6252001, | |
iso_code: "US", | |
names: %{ | |
de: "USA", | |
en: "United States", | |
es: "Estados Unidos", | |
fr: "États-Unis", | |
ja: "アメリカ合衆国", | |
"pt-BR": "Estados Unidos", | |
ru: "США", | |
"zh-CN": "美国" | |
} | |
}, | |
ip_address: {45, 50, 161, 38}, | |
registered_country: %{ | |
geoname_id: 6252001, | |
iso_code: "US", | |
names: %{ | |
de: "USA", | |
en: "United States", | |
es: "Estados Unidos", | |
fr: "États-Unis", | |
ja: "アメリカ合衆国", | |
"pt-BR": "Estados Unidos", | |
ru: "США", | |
"zh-CN": "美国" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment