Example #1
0
 internal LocationReference(string unstructuredLocation, NamedLocation namedLocation, CountrySubdivision countrySubdivision, Locality locality)
 {
     Set(unstructuredLocation, namedLocation, countrySubdivision, locality);
 }
Example #2
0
 public static IList <PostalCode> GetPostalCodes(this Locality locality)
 {
     return(GetFinder().GetPostalCodes(locality));
 }
Example #3
0
 internal void Set(string unstructuredLocation, NamedLocation namedLocation, CountrySubdivision countrySubdivision, Locality locality)
 {
     UnstructuredLocation = unstructuredLocation == string.Empty ? null : unstructuredLocation;
     NamedLocation        = namedLocation;
     CountrySubdivision   = countrySubdivision;
     Locality             = locality;
 }
Example #4
0
 public void Add(Locality locality, IList <PostalCode> postalCodes)
 {
     _namedLocationsById[locality.Id]            = locality;
     _localitiesByCoordinates[locality.Centroid] = locality;
     _localityPostalCodes[locality.Id]           = postalCodes;
 }