目录

Poi

Class Info

public class Poi

Represents a POI object containing detailed POI information.

Public Constructor Summary

Constructor Name

Poi()

Default constructor.

Public Method Summary

Qualifier and Type

Method Name and Description

String

getBusinessStatus()

Obtains the business status of a place.

ChildrenNode[]

getChildrenNodes()

Obtains child nodes of a POI.

String

getInternationalPhone()

Obtains the international phone number of a place.

OpeningHours

getOpeningHours()

Obtains opening hours of a place.

String

getPhone()

Obtains the phone number of a place.

String[]

getPhotoUrls()

Obtains the photo URL of a place.

String[]

getPoiTypes()

Obtains a list of POI types.

Integer

getPriceLevel()

Obtains the price level of a place.

String[]

getHwPoiTypes()

Obtains Huawei POI types of a place.

double

getRating()

Obtains the rating of a place.

String

getWebsiteUrl()

Obtains the official website of a place.

String

getIcon()

Obtains the icon URL of a place.

void

setBusinessStatus(String businessStatus)

Sets the business status of a place.

void

setChildrenNodes(ChildrenNode[] childrenNodes)

Sets child nodes of a POI.

void

setInternationalPhone(String internationalPhone)

Sets the international phone number of a place.

void

setOpeningHours(OpeningHours openingHours)

Sets opening hours of a place.

void

setPhone(String phone)

Sets the phone number of a place.

void

setPhotoUrls(String[] photoUrls)

Sets the photo URL of a place.

void

setPoiTypes(String[] poiTypes)

Sets the POI type of a place.

void

setPriceLevel(Integer priceLevel)

Sets the price level of a place.

void

setHwPoiTypes(String[] hwPoiTypes)

Sets the Huawei POI type of a place.

void

setRating(double rating)

Sets the rating of a place.

void

setWebsiteUrl(String websiteUrl)

Sets the official website of a place.

void

setIcon(String icon)

Sets the icon URL of a place.

Public Methods

[h2]getBusinessStatus

Method

public String getBusinessStatus()

Obtains the business status of a place.

Returns

Type

Description

String

Business status of a place. The options are as follows:

  • OPEN_NOW: open
  • CLOSE_NOW: closed
  • CLOSED_TEMPORARILY: temporarily closed
  • CLOSED_PERMANENTLY: permanently closed
NOTE:

This parameter is returned only by the place detail search API.

[h2]getChildrenNodes

Method

public ChildrenNode[] getChildrenNodes()

Obtains child nodes of a POI.

Returns

Type

Description

ChildrenNode[]

Child nodes of a POI.

[h2]getInternationalPhone

Method

public String getInternationalPhone()

Obtains the international phone number of a place.

Returns

Type

Description

String

International phone number.

[h2]getOpeningHours

Method

public OpeningHours getOpeningHours()

Obtains opening hours of a place.

Returns

Type

Description

OpeningHours

Opening hours.

[h2]getPhone

Method

public String getPhone()

Obtains the phone number of a place.

Returns

Type

Description

String

Phone number.

[h2]getPhotoUrls

Method

public String[] getPhotoUrls()

Obtains the photo URL of a place.

Returns

Type

Description

String[]

Photo URL.

[h2]getPoiTypes

Method

public String[] getPoiTypes()

Obtains a list of POI types.

Returns

Type

Description

String[]

POI type.

[h2]getPriceLevel

Method

public Integer getPriceLevel()

Obtains the price level of a place.

Returns

Type

Description

Integer

Price level. The value ranges from 0 to 4.

NOTE:

This parameter is returned only by the place detail search API.

[h2]getHwPoiTypes

Method

public String[] getHwPoiTypes()

Obtains Huawei POI types of a place.

Returns

Type

Description

String[]

Huawei POI types.

[h2]getRating

Method

public double getRating()

Obtains the rating of a place.

Returns

Type

Description

double

Rating.

[h2]getWebsiteUrl

Method

public String getWebsiteUrl()

Obtains the official website of a place.

Returns

Type

Description

String

Official website.

[h2]getIcon

Method

public String getIcon()

Obtains the icon URL of a place.

Returns

Type

Description

String

Icon URL.

[h2]setBusinessStatus

Method

public void setBusinessStatus(String businessStatus)

Sets the business status of a place.

Parameters

Name

Description

businessStatus

Business status of a place. The options are as follows:

  • OPEN_NOW: open
  • CLOSE_NOW: closed
  • CLOSED_TEMPORARILY: temporarily closed
  • CLOSED_PERMANENTLY: permanently closed
NOTE:

This parameter is returned only by the place detail search API.

[h2]setChildrenNodes

Method

public void setChildrenNodes(ChildrenNode[] childrenNodes)

Sets child nodes of a POI.

Parameters

Name

Description

childrenNodes

Child nodes of a POI.

[h2]setInternationalPhone

Method

public void setInternationalPhone(String internationalPhone)

Sets the international phone number of a place.

Parameters

Name

Description

internationalPhone

International phone number.

[h2]setOpeningHours

Method

public void setOpeningHours(OpeningHours openingHours)

Sets opening hours of a place.

Parameters

Name

Description

openingHours

Opening hours.

[h2]setPhone

Method

public void setPhone(String phone)

Sets the phone number of a place.

Parameters

Name

Description

phone

Phone number.

[h2]setPhotoUrls

Method

public void setPhotoUrls(String[] photoUrls)

Sets the photo URL of a place.

Parameters

Name

Description

photoUrls

Photo URL.

[h2]setPoiTypes

Method

public void setPoiTypes(String[] poiTypes)

Sets the POI type of a place.

Parameters

Name

Description

poiTypes

POI type.

NOTE:

Huawei POI types are recommended.

[h2]setPriceLevel

Method

public void setPriceLevel(Integer priceLevel)

Sets the price level of a place.

Parameters

Name

Description

priceLevel

Price level. The value ranges from 0 to 4.

[h2]setHwPoiTypes

Method

public void setHwPoiTypes(String[] hwPoiTypes)

Sets the Huawei POI type of a place.

Parameters

Name

Description

hwPoiTypes

Huawei POI type.

[h2]setRating

Method

public void setRating(double rating)

Sets the rating of a place.

Parameters

Name

Description

rating

Rating. The value ranges from 0 to 5.

[h2]setWebsiteUrl

Method

public void setWebsiteUrl(String websiteUrl)

Sets the official website of a place.

Parameters

Name

Description

websiteUrl

Official website.

[h2]setIcon

Method

public void setIcon(String icon)

Sets the icon URL of a place.

Parameters

Name

Description

icon

Icon URL.