Skip to content

A simple API for geolocation calls when other methods are not available

Notifications You must be signed in to change notification settings

VancouverCanucks/geo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geo

A very simple API that checks a geolocation of a given IP address.

Geolocation API

Geo uses the http://www.ipinfodb.com API to check the IP address that the request comes from.

Setup

config.yml needs to contain the API key from IPInfo.com, and also, the key/value pair of what you're looking to check for.

Use

Simply include the / route as a script (<script type="text/javascript" src="http://www.mydomain.com/?callback=myJsFunction"></script>). For the callback parameter, use a Javascript function name of the function that you want to handle the result. What will happen is you will get back a true or false as the first parameter.

About

A simple API for geolocation calls when other methods are not available

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages