Skip to content

Add "airport" to the PlaceAutocompleteType enum #1005

Open

Description

@guytar1220

Hello, thanks for your work, I like your library a lot.... I would like to use the PlacesApi.placeAutocomplete for getting airports.

From my local tests simply adding airport to the PlaceAutocompleteType enum would do the trick
`
public enum PlaceAutocompleteType implements StringJoin.UrlValue {
GEOCODE("geocode"),
ADDRESS("address"),
AIRPORT("airport"), // <-- here
ESTABLISHMENT("establishment"),
REGIONS("(regions)"),
CITIES("(cities)");

PlaceAutocompleteType(final String placeType) {
this.placeType = placeType;
}

private final String placeType;

@OverRide
public String toUrlValue() {
return placeType;
}

@OverRide
public String toString() {
return placeType;
}
}
`

Many thanks
Stephane

Activity

  1. added
    triage meI really want to be triaged.
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Sep 27, 2024
  2. guytar1220 commented on Sep 27, 2024

    @guytar1220
    Author

    Oh gosh sorry... very similar to #877

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage meI really want to be triaged.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions