algoliasearch/src/main/java/com/algolia/search/saas/places/PlacesQuery.java
public @NonNull PlacesQuery setType(Type type) {
        if (type == null) {
            set(KEY_TYPE, null);
        } else {
            switch (type) {
                case CITY:
                    set(KEY_TYPE, "city");
                    break;
                case COUNTRY:
                    set(KEY_TYPE, "country");
                    break;
                case ADDRESS:
                    set(KEY_TYPE, "address");
                    break;
                case BUS_STOP:
                    set(KEY_TYPE, "busStop");
                    break;
                case TRAIN_STATION:
                    set(KEY_TYPE, "trainStation");
                    break;
                case TOWN_HALL:
                    set(KEY_TYPE, "townhall");
                    break;
                case AIRPORT:
                    set(KEY_TYPE, "airport");
                    break;
            }
        }
        return this;
    }
public @NonNull PlacesQuery setType(Type type) {
        if (type == null) {
            set(KEY_TYPE, null);
        } else {
            switch (type) {
                case CITY:
                    set(KEY_TYPE, "city");
                    break;
                case COUNTRY:
                    set(KEY_TYPE, "country");
                    break;
                case ADDRESS:
                    set(KEY_TYPE, "address");
                    break;
                case BUS_STOP:
                    set(KEY_TYPE, "busStop");
                    break;
                case TRAIN_STATION:
                    set(KEY_TYPE, "trainStation");
                    break;
                case TOWN_HALL:
                    set(KEY_TYPE, "townhall");
                    break;
                case AIRPORT:
                    set(KEY_TYPE, "airport");
                    break;
            }
        }
        return this;
    }
public @ NonNull PlacesQuery setType ( Type type ) { if ( type == null ) { set ( KEY_TYPE , null ) ; } else { switch ( type ) { case CITY : set ( KEY_TYPE , "city" ) ; break ; case COUNTRY : set ( KEY_TYPE , "country" ) ; break ; case ADDRESS : set ( KEY_TYPE , "address" ) ; break ; case BUS_STOP : set ( KEY_TYPE , "busStop" ) ; break ; case TRAIN_STATION : set ( KEY_TYPE , "trainStation" ) ; break ; case TOWN_HALL : set ( KEY_TYPE , "townhall" ) ; break ; case AIRPORT : set ( KEY_TYPE , "airport" ) ; break ; } } return this ; }
Set the type of place to search for.

@param type Type of place to search for.
Set the type of place to search for .