Class City

    • Method Detail

      • getNames

        public Map<Locale,​String> getNames()
        Returns an unmodifiable map of this city names, grouped by locale.
        Returns:
        an unmodifiable map of this city names, grouped by locale.
        Since:
        10.2.0
      • getName

        public Optional<String> getName​(Locale... locales)
        Returns an optional name of this city that is in some of the given locales. The lookup order is the given locales order.
        Parameters:
        locales - the locales.
        Returns:
        an optional name of this city that is in some of the given locales.
        Since:
        10.2.0
      • getGeoNameId

        public Optional<Integer> getGeoNameId()
        Returns an optional geo name identifier.
        Returns:
        an optional geo name identifier.
        Since:
        10.2.0