HERE Android SDK Developer's Guide

Ratings

The class Ratings is a member of com.here.android.mpa.search .

Class Summary

public class Ratings

extends java.lang.Object

Represents a summary of user-supplied ratings for a Place.

[For complete information, see the section Class Details]

See also:

getUserRatings()

Method Summary

Table 1. Methods in Ratings
Methods

public boolean equals (Object obj)

For documentation, see java.lang.Object

public double getAverage ()

Gets the average rating for the Place.

public int getCount ()

Gets the count of individual contributions that users provided for rating the Place.

public int hashCode ()

For documentation, see java.lang.Object

Class Details

Represents a summary of user-supplied ratings for a Place.

Note: ratings are normalized to values from [0..5], to compensate for potential differences between supplier ratings systems.

See also:

getUserRatings()

Method Details

public boolean equals (Object obj)

For documentation, see java.lang.Object

Parameters:

  • obj

public double getAverage ()

Gets the average rating for the Place.

Returns:

The average rating

public int getCount ()

Gets the count of individual contributions that users provided for rating the Place.

Returns:

The total ratings count

public int hashCode ()

For documentation, see java.lang.Object