Interface RGeo<V>

    • Method Detail

      • add

        long add​(double longitude,
                 double latitude,
                 V member)
        Adds geospatial member.
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        member - - object itself
        Returns:
        number of elements added to the sorted set, not including elements already existing for which the score was updated
      • add

        long add​(GeoEntry... entries)
        Adds geospatial members.
        Parameters:
        entries - - objects
        Returns:
        number of elements added to the sorted set, not including elements already existing for which the score was updated
      • dist

        Double dist​(V firstMember,
                    V secondMember,
                    GeoUnit geoUnit)
        Returns distance between members in GeoUnit units.
        Parameters:
        firstMember - - first object
        secondMember - - second object
        geoUnit - - geo unit
        Returns:
        distance
      • hash

        Map<V,​String> hash​(V... members)
        Returns 11 characters Geohash string mapped by defined member.
        Parameters:
        members - - objects
        Returns:
        hash mapped by object
      • pos

        Map<V,​GeoPosition> pos​(V... members)
        Returns geo-position mapped by defined member.
        Parameters:
        members - - objects
        Returns:
        geo position mapped by object
      • radius

        List<V> radius​(double longitude,
                       double latitude,
                       double radius,
                       GeoUnit geoUnit)
        Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units.
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        list of objects
      • radius

        List<V> radius​(double longitude,
                       double latitude,
                       double radius,
                       GeoUnit geoUnit,
                       int count)
        Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units and limited by count
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        list of objects
      • radius

        List<V> radius​(double longitude,
                       double latitude,
                       double radius,
                       GeoUnit geoUnit,
                       GeoOrder geoOrder)
        Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - order of result
        Returns:
        list of objects
      • radius

        List<V> radius​(double longitude,
                       double latitude,
                       double radius,
                       GeoUnit geoUnit,
                       GeoOrder geoOrder,
                       int count)
        Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder and limited by count
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - order of result
        count - - result limit
        Returns:
        list of objects
      • radiusWithDistance

        Map<V,​Double> radiusWithDistance​(double longitude,
                                               double latitude,
                                               double radius,
                                               GeoUnit geoUnit)
        Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units.
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        distance mapped by object
      • radiusWithDistance

        Map<V,​Double> radiusWithDistance​(double longitude,
                                               double latitude,
                                               double radius,
                                               GeoUnit geoUnit,
                                               int count)
        Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units and limited by count.
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        distance mapped by object
      • radiusWithDistance

        Map<V,​Double> radiusWithDistance​(double longitude,
                                               double latitude,
                                               double radius,
                                               GeoUnit geoUnit,
                                               GeoOrder geoOrder)
        Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - order of result
        Returns:
        distance mapped by object
      • radiusWithDistance

        Map<V,​Double> radiusWithDistance​(double longitude,
                                               double latitude,
                                               double radius,
                                               GeoUnit geoUnit,
                                               GeoOrder geoOrder,
                                               int count)
        Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder and limited by count
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - order of result
        count - - result limit
        Returns:
        distance mapped by object
      • radiusWithPosition

        Map<V,​GeoPosition> radiusWithPosition​(double longitude,
                                                    double latitude,
                                                    double radius,
                                                    GeoUnit geoUnit)
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units.
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        geo position mapped by object
      • radiusWithPosition

        Map<V,​GeoPosition> radiusWithPosition​(double longitude,
                                                    double latitude,
                                                    double radius,
                                                    GeoUnit geoUnit,
                                                    int count)
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units and limited by count
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        geo position mapped by object
      • radiusWithPosition

        Map<V,​GeoPosition> radiusWithPosition​(double longitude,
                                                    double latitude,
                                                    double radius,
                                                    GeoUnit geoUnit,
                                                    GeoOrder geoOrder)
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        Returns:
        geo position mapped by object
      • radiusWithPosition

        Map<V,​GeoPosition> radiusWithPosition​(double longitude,
                                                    double latitude,
                                                    double radius,
                                                    GeoUnit geoUnit,
                                                    GeoOrder geoOrder,
                                                    int count)
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder and limited by count
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        count - - result limit
        Returns:
        geo position mapped by object
      • radius

        List<V> radius​(V member,
                       double radius,
                       GeoUnit geoUnit)
        Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units.
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        list of objects
      • radius

        List<V> radius​(V member,
                       double radius,
                       GeoUnit geoUnit,
                       int count)
        Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units and limited by count
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        list of objects
      • radius

        List<V> radius​(V member,
                       double radius,
                       GeoUnit geoUnit,
                       GeoOrder geoOrder)
        Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        Returns:
        list of objects
      • radius

        List<V> radius​(V member,
                       double radius,
                       GeoUnit geoUnit,
                       GeoOrder geoOrder,
                       int count)
        Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder and limited by count
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        count - - result limit
        Returns:
        list of objects
      • radiusWithDistance

        Map<V,​Double> radiusWithDistance​(V member,
                                               double radius,
                                               GeoUnit geoUnit)
        Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units.
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        distance mapped by object
      • radiusWithDistance

        Map<V,​Double> radiusWithDistance​(V member,
                                               double radius,
                                               GeoUnit geoUnit,
                                               int count)
        Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units and limited by count
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        distance mapped by object
      • radiusWithDistance

        Map<V,​Double> radiusWithDistance​(V member,
                                               double radius,
                                               GeoUnit geoUnit,
                                               GeoOrder geoOrder)
        Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        Returns:
        distance mapped by object
      • radiusWithDistance

        Map<V,​Double> radiusWithDistance​(V member,
                                               double radius,
                                               GeoUnit geoUnit,
                                               GeoOrder geoOrder,
                                               int count)
        Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder and limited by count
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        count - - result limit
        Returns:
        distance mapped by object
      • radiusWithPosition

        Map<V,​GeoPosition> radiusWithPosition​(V member,
                                                    double radius,
                                                    GeoUnit geoUnit)
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units.
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        geo position mapped by object
      • radiusWithPosition

        Map<V,​GeoPosition> radiusWithPosition​(V member,
                                                    double radius,
                                                    GeoUnit geoUnit,
                                                    int count)
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units and limited by count
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        geo position mapped by object
      • radiusWithPosition

        Map<V,​GeoPosition> radiusWithPosition​(V member,
                                                    double radius,
                                                    GeoUnit geoUnit,
                                                    GeoOrder geoOrder)
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        Returns:
        geo position mapped by object
      • radiusWithPosition

        Map<V,​GeoPosition> radiusWithPosition​(V member,
                                                    double radius,
                                                    GeoUnit geoUnit,
                                                    GeoOrder geoOrder,
                                                    int count)
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder and limited by count
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        count - - result limit
        Returns:
        geo position mapped by object
      • radiusStoreTo

        long radiusStoreTo​(String destName,
                           double longitude,
                           double latitude,
                           double radius,
                           GeoUnit geoUnit)
        Finds the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units. Store result to destName.
        Parameters:
        destName - - Geo object destination
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        length of result
      • radiusStoreTo

        long radiusStoreTo​(String destName,
                           double longitude,
                           double latitude,
                           double radius,
                           GeoUnit geoUnit,
                           int count)
        Finds the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units and limited by count Store result to destName.
        Parameters:
        destName - - Geo object destination
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        length of result
      • radiusStoreTo

        long radiusStoreTo​(String destName,
                           double longitude,
                           double latitude,
                           double radius,
                           GeoUnit geoUnit,
                           GeoOrder geoOrder,
                           int count)
        Finds the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder and limited by count Store result to destName.
        Parameters:
        destName - - Geo object destination
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - order of result
        count - - result limit
        Returns:
        length of result
      • radiusStoreTo

        long radiusStoreTo​(String destName,
                           V member,
                           double radius,
                           GeoUnit geoUnit)
        Finds the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units. Store result to destName.
        Parameters:
        destName - - Geo object destination
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        length of result
      • radiusStoreTo

        long radiusStoreTo​(String destName,
                           V member,
                           double radius,
                           GeoUnit geoUnit,
                           int count)
        Finds the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units and limited by count Store result to destName.
        Parameters:
        destName - - Geo object destination
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        length of result
      • radiusStoreTo

        long radiusStoreTo​(String destName,
                           V member,
                           double radius,
                           GeoUnit geoUnit,
                           GeoOrder geoOrder,
                           int count)
        Finds the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder Store result to destName.
        Parameters:
        destName - - Geo object destination
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        count - - result limit
        Returns:
        length of result