public class ComponentFilter
extends java.lang.Object
implements com.google.maps.internal.StringJoin.UrlValue
Please see Component Filtering for more detail.
Modifier and Type | Field and Description |
---|---|
java.lang.String |
component |
java.lang.String |
value |
Modifier and Type | Method and Description |
---|---|
static ComponentFilter |
administrativeArea(java.lang.String administrativeArea)
Matches all the administrative area levels.
|
static ComponentFilter |
country(java.lang.String country)
Matches a country name or a two letter ISO 3166-1 country code.
|
static ComponentFilter |
locality(java.lang.String locality)
Matches against both locality and sublocality types.
|
static ComponentFilter |
postalCode(java.lang.String postalCode)
Matches postal code or postal code prefix.
|
static ComponentFilter |
route(java.lang.String route)
Matches long or short name of a route.
|
java.lang.String |
toString() |
java.lang.String |
toUrlValue() |
public final java.lang.String component
public final java.lang.String value
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toUrlValue()
toUrlValue
in interface com.google.maps.internal.StringJoin.UrlValue
public static ComponentFilter route(java.lang.String route)
route
- The name of the route to filter on.ComponentFilter
.public static ComponentFilter locality(java.lang.String locality)
locality
- The locality to filter on.ComponentFilter
.public static ComponentFilter administrativeArea(java.lang.String administrativeArea)
administrativeArea
- The administrative area to filter on.ComponentFilter
.public static ComponentFilter postalCode(java.lang.String postalCode)
postalCode
- The postal code to filter on.ComponentFilter
.public static ComponentFilter country(java.lang.String country)
country
- The country to filter on.ComponentFilter
.