Introduction
Built to work alongside Wappler Custom Extension - Get Client IP address (node and PHP) this extension takes an ip address and perfro,ms a geolocation of that address.
The node version leverages the npm "geoip-lite" to perform the location, PHP uses it's native functionality.
Installation
Install via Wappler's project Manager
Or via the following NPM
https://www.npmjs.com/package/@hyperbytes/wappler-geo-locate-ip
Usage
The extension can be found in the "Custom Extensions" group
Once added to your api action simply pass an ip address. Here is select the output of "Get Client IP"
Output
The extension returns the following output:
geo":{
"country":"US",
"region":"CA",
"city":"San Francisco",
"timezone":"America/Los_Angeles",
"latitude":37.7353,
"longitude":-122.3732}


