Class CadfGeolocation.Builder

  • Enclosing class:
    CadfGeolocation

    public static class CadfGeolocation.Builder
    extends Object
    Builder is a convenience pattern to assemble to Java Object
    • Constructor Detail

      • Builder

        public Builder​(String latitude,
                       String longitude,
                       Double elevation,
                       Double accuracy)
        Geolocation builder using latitude/longitude values.
        Parameters:
        latitude - -- String. Latitude values adhere to the format based on ISO 6709:2008 Annex H.3.1 – H.3.3. [ISO-6709-2008]
        longitude - -- String. Longitude values adhere to the format based on ISO 6709:2008 Annex H.3.1 – H.3.3. [ISO-6709-2008]
        elevation - -- Double. Elevation in meters.
        accuracy - -- Double. Accuracy of geolocation, in meters.
      • Builder

        public Builder​(String city,
                       String state,
                       String regionICANN,
                       Double accuracy)
        Geolocation builder using city/state/region.
        Parameters:
        city - - String. Location city.
        state - - String. Location state or province, optional.
        regionICANN - - String. Location region -- ICANN country code per top level domain (ccTLD) naming convention [IANA-ccTLD]. May be upper- or lowercase.
        accuracy - -- Double. Accuracy of geolocation, in meters.