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