Struct LocationData
Inherited Members
Namespace: WeatherAPI_CSharp
Assembly: WeatherAPI-CSharp.dll
Syntax
public readonly struct LocationData
Properties
| Edit this page View SourceCity
Declaration
public string City { get; }
Property Value
Type | Description |
---|---|
string | City name |
ContinentCode
Declaration
public string ContinentCode { get; }
Property Value
Type | Description |
---|---|
string | Continent code |
ContinentName
Declaration
public string ContinentName { get; }
Property Value
Type | Description |
---|---|
string | Continent name |
CountryCode
Declaration
public string CountryCode { get; }
Property Value
Type | Description |
---|---|
string | Country code |
CountryName
Declaration
public string CountryName { get; }
Property Value
Type | Description |
---|---|
string | Country name |
GeonameId
Declaration
public string GeonameId { get; }
Property Value
Type | Description |
---|---|
string | Geoname ID |
Ip
Declaration
public string Ip { get; }
Property Value
Type | Description |
---|---|
string | IP address |
IsEu
Declaration
public bool IsEu { get; }
Property Value
Type | Description |
---|---|
bool | Weather the country is in the EU |
Latitude
Declaration
public double Latitude { get; }
Property Value
Type | Description |
---|---|
double | Latitude in decimal degrees |
Longitude
Declaration
public double Longitude { get; }
Property Value
Type | Description |
---|---|
double | Longitude in decimal degrees |
Region
Declaration
public string Region { get; }
Property Value
Type | Description |
---|---|
string | Region name |
Timezone
Declaration
public string Timezone { get; }
Property Value
Type | Description |
---|---|
string | Time zone name |
Type
Declaration
public string Type { get; }
Property Value
Type | Description |
---|---|
string | IP address type (ipv4/ipv6) |
Valid
Declaration
public bool Valid { get; }
Property Value
Type | Description |
---|---|
bool | Whether or not the API request was successfull |
Methods
| Edit this page View SourceToString()
Generates string of all Members and their values
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | Printable string of members and their values |