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
dataJTokenThe JSON token that includes latitude and longitude.
Returns
Exceptions
- ArgumentNullException
Thrown when
dataisnull.