public static ComponentFilter locality(String locality) {
    return new ComponentFilter("locality", locality);
  }
Matches against both locality and sublocality types.

@param locality The locality to filter on.
@return Returns a {@link ComponentFilter}.
src/main/java/com/google/maps/model/ComponentFilter.java