/// <summary> /// Get the latitude from the property value. /// </summary> /// <param name="geometry"></param> /// <returns></returns> private double GetLatitude(GModel.GeometryModel geometry) { if (geometry.Coordinates?.Length == 2) { return(geometry.Coordinates[1]); } return(0); }
/// <summary> /// Get the longitude from the property value. /// </summary> /// <param name="geometry"></param> /// <returns></returns> private double GetLongtitude(GModel.GeometryModel geometry) { if (geometry.Coordinates?.Length >= 1) { return(geometry.Coordinates[0]); } return(0); }