Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Find Russian and Ukraine city by IP address and find country for other country Elixir

License

NotificationsYou must be signed in to change notification settings

sergey-chechaev/elixir_ipgeobase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find Russian and Ukraine city by IP address and find country for other country. Sourcehttp://ipgeobase.ru/

Examples

  iex> ip = Ipgeobase.find_by_ip("46.188.121.160")  %Ipgeobase{city: "Москва", country: "RU"}  iex> ip.city  "Москва"  iex> ip.country  "RU"    iex> Ipgeobase.find_by_ip("5.10.159.255")  %Ipgeobase{city: "", country: "GB"}  iex> ip.country  "GB"

Installation

Itavailable in Hex, the package can be installed as:

  1. Add ipgeobase to your list of dependencies inmix.exs:

    def deps do[{:ipgeobase, "~> 0.0.1"}]end

  2. Ensure ipgeobase is started before your application:

    def application do[applications: [:ipgeobase]]end

About

Find Russian and Ukraine city by IP address and find country for other country Elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp