Esempio n. 1
0
 internal LocationReference(string unstructuredLocation, NamedLocation namedLocation, CountrySubdivision countrySubdivision, Locality locality)
 {
     Set(unstructuredLocation, namedLocation, countrySubdivision, locality);
 }
Esempio n. 2
0
 public static IList <PostalCode> GetPostalCodes(this Locality locality)
 {
     return(GetFinder().GetPostalCodes(locality));
 }
Esempio n. 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;
 }
Esempio n. 4
0
 public void Add(Locality locality, IList <PostalCode> postalCodes)
 {
     _namedLocationsById[locality.Id]            = locality;
     _localitiesByCoordinates[locality.Centroid] = locality;
     _localityPostalCodes[locality.Id]           = postalCodes;
 }