项目作者: catmullet

项目描述 :
Geo location based on ip address. Simple one file Geo location Golang API
高级语言: Go
项目地址: git://github.com/catmullet/Simple-MaxMind-GeoLocation.git
创建时间: 2018-10-24T02:43:20Z
项目社区:https://github.com/catmullet/Simple-MaxMind-GeoLocation

开源协议:MIT License

下载


Raithe

Simple-MaxMind-GeoLocation

Geo location based on ip address. Simple one file Geo location Golang API

Steps to get going

  1. Download application.go
  2. Zip up application.go
  3. Upload to aws Elastic Beanstalk on Go platform (Minimum of 2gb of memory)

Check progress through /health endpoint and if IP’s is equal to 221 it is ready

Update IP’s

<Your Server DNS>/update

Example Request

<Your Server DNS>/ip?address=198.60.227.255

Example Response

{ iso_code: "US", country_name: "United States", subdivision: "Idaho", city_name: "Idaho Falls", time_zone: "America/Boise" }