com.supermap.onlineservices

Class POIQueryParameter

  • java.lang.Object
    • com.supermap.onlineservices.POIQueryParameter


  • public class POIQueryParameter
    extends java.lang.Object
    The query parameter class.
    • Constructor Detail

      • POIQueryParameter

        public POIQueryParameter()
        The default constructor for constructing a new POIQueryParameter 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.