Class CloudflareClientLocation
The visitor location that Cloudflare sends with a request, as Cloudflare provides it. Values that Cloudflare did not send are null.
Namespace: Singulink.Net.Http.Api.Service
Assembly: Singulink.Net.Http.Api.Service.Cloudflare.dll
Syntax
public sealed class CloudflareClientLocation
Remarks
Cloudflare sends CountryCode when IP geolocation is turned on for the zone, and the other values when its "Add visitor location headers" managed transform is turned on.
Properties
| Name | Description |
|---|---|
| City | Gets the name of the visitor's city, such as |
| ContinentCode | Gets the visitor's continent as a two-letter code, such as |
| CountryCode | Gets the visitor's country as a two-letter ISO 3166-1 code, such as |
| Latitude | Gets the visitor's approximate latitude, as Cloudflare writes it, from the |
| Longitude | Gets the visitor's approximate longitude, as Cloudflare writes it, from the |
| MetroCode | Gets the visitor's metro code (US only), from the |
| PostalCode | Gets the visitor's postal code, from the |
| Region | Gets the name of the visitor's region, such as |
| RegionCode | Gets the code of the visitor's region, such as |
| TimeZone | Gets the name of the visitor's time zone, such as |
Methods
| Name | Description |
|---|---|
| ToString() | Returns the visitor's city, region and country code, as far as Cloudflare sent them, separated by commas, such as |