[]
A location provider help to detect the Visitor Location based on IP Address.
public class Ip2LocationProvider : ILocationProvider
| Name | Description |
|---|---|
| Ip2LocationProvider(LocationContext) | Default constructor. |
| Name | Description |
|---|---|
| LocationFromIPAddress(string) | Getting geographical location from an IP Address. It will automatically detect the given IP Address is IPv4 or IPv6. If the given IP is in localhost, there's no location can be found. |
| LocationFromIPV4Number(double) | Getting geographical location from an IPv4 number. |
| LocationFromIPV6Number(decimal) | Getting geographical location from an IPv6 number. |
| LocationFromLatlng(double, double) | Getting geographical localtion from latitude and longitude point. |
| Type() | Get location provider type |