/** @return the postcodeLocalities */
 public List<String> getPostcodeLocalities() {
   final List<String> result = new ArrayList<>();
   try {
     if (!(jsObject.getMember("postcode_localities") instanceof String)) {
       List<JSObject> jsLocalities =
           GeocoderUtils.getJSObjectsFromArray(
               (JSObject) jsObject.getMember("postcode_localities"));
       for (JSObject jsLocality : jsLocalities) {
         String text = jsLocality.toString();
         if (text != null && !text.isEmpty() && !text.equals("undefined")) {
           result.add(text);
         }
       }
     }
   } catch (Exception e) {
     Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, "", e);
   }
   return result;
 }
 /** @return the types */
 public List<GeocoderAddressComponentType> getTypes() {
   JSObject jsType = (JSObject) getJSObject().getMember("types");
   return GeocoderUtils.convertJSObjectToListOfEnum(jsType, GeocoderAddressComponentType.class);
 }