Class GeoUtils
- Namespace
- SimpleWeather
- Assembly
- SimpleWeather.dll
Provides serializer-independent coordinate conversion.
public static class GeoUtils
- Inheritance
-
GeoUtils
- Inherited Members
Methods
GetCoordinatesFromJson(string)
Reads latitude and longitude from an OpenWeather JSON object.
public static LatLong GetCoordinatesFromJson(string json)
Parameters
jsonstringA JSON object containing lat and lon.
Returns
- LatLong
The coordinates, defaulting missing values to zero.