PaaS : Geolocation
action getLocation
Arguments
Name |
Data Type |
Required |
Description |
Default |
ip |
string |
required |
An IP to find the its location |
|
enc |
string |
optional |
Encoding Method (either utf8 or euckr ) |
utf8 |
ext |
string |
optional |
Flag for additional info (either t or f ) |
f |
Examples
const geoLocation = client.PaaS.geoLocation();
const geolocationResponse = await geoLocation.geoLocation({
ip: '143.248.142.77'
});
console.log(geolocationResponse);
const geoLocation = client.PaaS.geoLocation();
const geolocationResponse = await geoLocation.geoLocation({
ip: '143.248.142.77',
ext: 't'
});
console.log(geolocationResponse);