类 ComponentFilter
java.lang.Object
ai.nextbillion.maps.model.ComponentFilter
- 所有已实现的接口:
StringJoin.UrlValue
public class ComponentFilter extends java.lang.Object implements StringJoin.UrlValue
A component filter for a geocode request. In a geocoding response, the Google Geocoding API can
return address results restricted to a specific area. The restriction is specified using the
components filter.
Please see Component Filtering for more detail.
-
字段概要
-
构造器概要
构造器 构造器 说明 ComponentFilter(java.lang.String component, java.lang.String value)Constructs a component filter. -
方法概要
修饰符和类型 方法 说明 static ComponentFilteradministrativeArea(java.lang.String administrativeArea)Matches all the administrative area levels.static ComponentFiltercountry(java.lang.String country)Matches a country name or a two letter ISO 3166-1 country code.static ComponentFilterlocality(java.lang.String locality)Matches against both locality and sublocality types.static ComponentFilterpostalCode(java.lang.String postalCode)Matches postal code or postal code prefix.static ComponentFilterroute(java.lang.String route)Matches long or short name of a route.java.lang.StringtoString()java.lang.StringtoUrlValue()
-
字段详细资料
-
构造器详细资料
-
ComponentFilter
public ComponentFilter(java.lang.String component, java.lang.String value)Constructs a component filter.- 参数:
component- The component to filter.value- The value of the filter.
-
-
方法详细资料
-
toString
public java.lang.String toString()- 覆盖:
toString在类中java.lang.Object
-
toUrlValue
public java.lang.String toUrlValue()- 指定者:
toUrlValue在接口中StringJoin.UrlValue- 返回:
- the object, represented as a URL value (not URL encoded).
-
route
Matches long or short name of a route.- 参数:
route- The name of the route to filter on.- 返回:
- Returns a
ComponentFilter.
-
locality
Matches against both locality and sublocality types.- 参数:
locality- The locality to filter on.- 返回:
- Returns a
ComponentFilter.
-
administrativeArea
Matches all the administrative area levels.- 参数:
administrativeArea- The administrative area to filter on.- 返回:
- Returns a
ComponentFilter.
-
postalCode
Matches postal code or postal code prefix.- 参数:
postalCode- The postal code to filter on.- 返回:
- Returns a
ComponentFilter.
-
country
Matches a country name or a two letter ISO 3166-1 country code.- 参数:
country- The country to filter on.- 返回:
- Returns a
ComponentFilter.
-