Interface IGeolocationProvider
The signature for a component that acts as a provider for geo locations.
Namespace: EPiServer.Personalization
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public interface IGeolocationProvider
Properties
Capabilities
Get the capabilities of this provider
Declaration
Capabilities Capabilities { get; }
Property Value
Type | Description |
---|---|
Capabilities |
Methods
GetContinentCodes()
Get the list of two-letter continent codes known to this provider
Declaration
IEnumerable<string> GetContinentCodes()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
GetCountryCodes(String)
Get the list of two-letter country codes known to this provider
Declaration
IEnumerable<string> GetCountryCodes(string continentCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | continentCode | Two-letter continent code to filter the list of countries on (may be null) |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
GetRegions(String)
Get the list of regions for a country known to this provider
Declaration
IEnumerable<string> GetRegions(string countryCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | countryCode | Two-letter country code to filter the list of regions on (may be null) |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Lookup(IPAddress)
Look up IP address in geolocation database
Declaration
IGeolocationResult Lookup(IPAddress address)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPAddress | address | IP address to look up |
Returns
Type | Description |
---|---|
IGeolocationResult | Geolocation data for the IP address (can be null) |