You are here

public static function WebServiceUtilityInterface::getGeolocation in Smart IP 8.2

Same name and namespace in other branches
  1. 8.4 src/WebServiceUtilityInterface.php \Drupal\smart_ip\WebServiceUtilityInterface::getGeolocation()
  2. 8.3 src/WebServiceUtilityInterface.php \Drupal\smart_ip\WebServiceUtilityInterface::getGeolocation()

Perform HTTP request and decoding the raw Geolocation data returned by Smart IP's data source module web.

Parameters

string $ipAddress: IP address to query for geolocation.

Return value

array

1 method overrides WebServiceUtilityInterface::getGeolocation()
WebServiceUtility::getGeolocation in modules/smart_ip_ipinfodb_web_service/src/WebServiceUtility.php
Perform HTTP request and decoding the raw Geolocation data returned by Smart IP's data source module web.

File

src/WebServiceUtilityInterface.php, line 45
Contains \Drupal\smart_ip\WebServiceUtilityInterface.

Class

WebServiceUtilityInterface
Provides an interface for Smart IP's data source modules for its web service.

Namespace

Drupal\smart_ip

Code

public static function getGeolocation($ipAddress);