using DynamicBible.DataPreparation.Models.Geolocation; namespace DynamicBibleUtility.Geolocation; /// /// A location mentioned in the Bible, with geographic coordinates and verse references. /// public class BibleLocationReference { /// The name of the location. public string Name = ""; /// /// Any Strong's numbers for the location name, if available. /// Includes an 'H' prefix for Hebrew and a 'G' prefix for Greek before the actual numbers. /// public IEnumerable StrongsNumbers = new List(); /// The latitude of the location, if available. public double? Latitude = null; /// The longitude of the location, if available. public double? Longitude = null; /// References to verses that mention the location. public IEnumerable VerseReferences = new List(); /// /// Gets references to verses that mention the location, in their short string form /// as used by the Dynamic Bible app. /// public IEnumerable VerseReferenceStrings { get { var verse_reference_strings = VerseReferences.Select(verse_reference => verse_reference.ToString()); return verse_reference_strings; } } /// /// True if this location information has full geographic coordinates; false otherwise. /// public bool HasGeographicCoordinates { get { var has_geographic_coordinates = Latitude.HasValue && Longitude.HasValue; return has_geographic_coordinates; } } }