com.supermap.onlineservices
Class POIQueryParameter
- java.lang.Object
-
- com.supermap.onlineservices.POIQueryParameter
-
public class POIQueryParameter extends java.lang.Object
The query parameter class.
-
-
Constructor Summary
Constructors Constructor and Description POIQueryParameter()
The default constructor for constructing a newPOIQueryParameter
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String
getCity()
Get the city name.CoordinateType
getCoordinateType()
Get the type of the projected coordinate system.java.lang.String
getKeywords()
Get the keywords.int
getPageNumber()
Get the page number.int
getPageSize()
Get the record count of each page.void
setCity(java.lang.String city)
Set the POI query range.void
setCoordinateType(CoordinateType type)
Set the output coordinate system type.void
setKey(java.lang.String key)
Set the authorized key (required).void
setKeywords(java.lang.String keywords)
Required.void
setPageNumber(int pageNumber)
Set the page number.void
setPageSize(int pageSize)
Set the record count of each page.
-
-
-
Constructor Detail
-
POIQueryParameter
public POIQueryParameter()
The default constructor for constructing a newPOIQueryParameter
object.
-
-
Method Detail
-
setKey
public void setKey(java.lang.String key)
Set the authorized key (required).- Parameters:
key
- Key.
-
getKeywords
public java.lang.String getKeywords()
Get the keywords.- Returns:
- the keywords.
-
setKeywords
public void setKeywords(java.lang.String keywords)
Required. Set the keywords to query POIs. e.g., Keyin multiple keywords and separate them by space. (required)- Parameters:
keywords
- the keywords.
-
getCity
public java.lang.String getCity()
Get the city name.- Returns:
- the city name.
-
setCity
public void setCity(java.lang.String city)
Set the POI query range. The default is Beijing city.- Parameters:
city
- the city names to query.
-
getPageSize
public int getPageSize()
Get the record count of each page.- Returns:
- the record count of each page.
-
setPageSize
public void setPageSize(int pageSize)
Set the record count of each page.The default value is 10.
Currently, the maximum count per page is 20 records due to the online product limitation
- Parameters:
pageSize
- the record count of each page.
-
getPageNumber
public int getPageNumber()
Get the page number.- Returns:
- the page number.
-
setPageNumber
public void setPageNumber(int pageNumber)
Set the page number. By default, the first page is 0.- Parameters:
pageNumber
- the page number.
-
getCoordinateType
public CoordinateType getCoordinateType()
Get the type of the projected coordinate system.- Returns:
- The type of the projected coordinate system.
-
setCoordinateType
public void setCoordinateType(CoordinateType type)
Set the output coordinate system type. For the supported coordinates, please refer to coodinate conversion. The default value isCoordinateType.NAVINFO_AMAP_LONGITUDE_LATITUDE
- Parameters:
type
- Coordinate type.
-
-