Table of Contents

Class GeoUtils

Namespace
SimpleWeather
Assembly
SimpleWeather.dll

Contains helpers for extracting coordinate data from JSON payloads.

public static class GeoUtils
Inheritance
GeoUtils
Inherited Members

Methods

GetCoordinatesFromJToken(JToken)

Converts a JSON token containing lat and lon fields into a LatLong instance.

public static LatLong GetCoordinatesFromJToken(JToken data)

Parameters

data JToken

The JSON token that includes latitude and longitude.

Returns

LatLong

The converted LatLong value.

Exceptions

ArgumentNullException

Thrown when data is null.