FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...
Preside extension to allow application developers to get all geolocation information about an IP address in a number of different formats.
Mainly developed for use with the https://extreme-ip-lookup.com/ IP Geolocation service but can be adapted to another provider.
Simply configure the API settings and that should be all you need. Examples are given in the CMS Admin Settings form.
Install the extension to your application via either of the methods detailed below (Git submodule / CommandBox + ForgeBox)
From the root of your application, type the following command:
git submodule add https://github.com/nodoherty/preside-ext-ip-geolocation-apis.git application/extensions/preside-ext-ip-geolocation-apis
From the root of your application type the following command:
box install preside-ext-ip-geolocation-apis
From the Preside CMS developer console (using the back tick ` key) reload the application:
reload all
Once the files are installed, enable the extension by reloading the application:
reload all --force
See the included handler ipGeolocation.cfc
for examples of calling directly via ColdFusion server code or via AJAX
$
box install preside-ext-ip-geolocation-apis