Package | Description |
---|---|
cn.leancloud | |
cn.leancloud.im.v2 | |
cn.leancloud.im.v2.messages | |
cn.leancloud.query | |
cn.leancloud.search | |
cn.leancloud.types |
Modifier and Type | Method and Description |
---|---|
LCGeoPoint |
LCObject.getLCGeoPoint(String key)
Get AVGeoPoint value of specified key.
|
Modifier and Type | Method and Description |
---|---|
LCQuery<T> |
LCQuery.whereNear(String key,
LCGeoPoint point)
Add a proximity based constraint for finding objects with key point values near the point
given.
|
LCQuery<T> |
LCQuery.whereWithinGeoBox(String key,
LCGeoPoint southwest,
LCGeoPoint northeast)
Add a constraint to the query that requires a particular key's coordinates be contained within
a given rectangular geographic bounding box.
|
LCQuery<T> |
LCQuery.whereWithinKilometers(String key,
LCGeoPoint point,
double maxDistance)
Add a proximity based constraint for finding objects with key point values near the point given
and within the maximum distance given.
|
LCQuery<T> |
LCQuery.whereWithinKilometers(String key,
LCGeoPoint point,
double maxDistance,
double minDistance)
Add a proximity based constraint for finding objects with key point values near the point given
and within the given ring area
Radius of earth used is 6371.0 kilometers.
|
LCQuery<T> |
LCQuery.whereWithinMiles(String key,
LCGeoPoint point,
double maxDistance)
Add a proximity based constraint for finding objects with key point values near the point given
and within the maximum distance given.
|
LCQuery<T> |
LCQuery.whereWithinMiles(String key,
LCGeoPoint point,
double maxDistance,
double minDistance)
Add a proximity based constraint for finding objects with key point values near the point
given and within the given ring.
|
LCQuery<T> |
LCQuery.whereWithinRadians(String key,
LCGeoPoint point,
double maxDistance)
Add a proximity based constraint for finding objects with key point values near the point given
and within the maximum distance given.
|
LCQuery<T> |
LCQuery.whereWithinRadians(String key,
LCGeoPoint point,
double maxDistance,
double minDistance)
Add a proximity based constraint for finding objects with key point values near the point given
and within the maximum distance given.
|
Modifier and Type | Method and Description |
---|---|
LCIMConversationsQuery |
LCIMConversationsQuery.whereNear(String key,
LCGeoPoint point)
增加一个基于地理位置的近似查询,当conversation的属性中对应字段对应的地理位置在pointer附近时即可返回
|
LCIMConversationsQuery |
LCIMConversationsQuery.whereWithinGeoBox(String key,
LCGeoPoint southwest,
LCGeoPoint northeast)
增加一个基于地理位置的查询,当conversation的属性中有对应字段对应的地址位置在指定的矩形区域内时即可返回
|
LCIMConversationsQuery |
LCIMConversationsQuery.whereWithinKilometers(String key,
LCGeoPoint point,
double maxDistance)
增加一个基于地理位置的近似查询,当conversation的属性中有对应的地址位置与指定的地理位置间距不超过指定距离时返回
地球半径为6371.0 千米
|
LCIMConversationsQuery |
LCIMConversationsQuery.whereWithinMiles(String key,
LCGeoPoint point,
double maxDistance)
增加一个基于地理位置的近似查询,当conversation的属性中有对应的地址位置与指定的地理位置间距不超过指定距离时返回
|
LCIMConversationsQuery |
LCIMConversationsQuery.whereWithinRadians(String key,
LCGeoPoint point,
double maxDistance)
增加一个基于地理位置的近似查询,当conversation的属性中有对应的地址位置与指定的地理位置间距不超过指定距离时返回
|
Modifier and Type | Method and Description |
---|---|
LCGeoPoint |
LCIMLocationMessage.getLocation() |
Modifier and Type | Method and Description |
---|---|
void |
LCIMLocationMessage.setLocation(LCGeoPoint location) |
Modifier and Type | Method and Description |
---|---|
void |
QueryConditions.whereNear(String key,
LCGeoPoint point) |
void |
QueryConditions.whereWithinGeoBox(String key,
LCGeoPoint southwest,
LCGeoPoint northeast) |
void |
QueryConditions.whereWithinKilometers(String key,
LCGeoPoint point,
double maxDistance) |
void |
QueryConditions.whereWithinKilometers(String key,
LCGeoPoint point,
double maxDistance,
double minDistance) |
void |
QueryConditions.whereWithinMiles(String key,
LCGeoPoint point,
double maxDistance) |
void |
QueryConditions.whereWithinMiles(String key,
LCGeoPoint point,
double maxDistance,
double minDistance) |
void |
QueryConditions.whereWithinRadians(String key,
LCGeoPoint point,
double maxDistance) |
void |
QueryConditions.whereWithinRadians(String key,
LCGeoPoint point,
double maxDistance,
double minDistance) |
Modifier and Type | Method and Description |
---|---|
LCSearchSortBuilder |
LCSearchSortBuilder.whereNear(String key,
LCGeoPoint point) |
LCSearchSortBuilder |
LCSearchSortBuilder.whereNear(String key,
LCGeoPoint point,
String order) |
LCSearchSortBuilder |
LCSearchSortBuilder.whereNear(String key,
LCGeoPoint point,
String order,
String mode,
String unit)
按照地理位置信息远近排序,key对应的字段类型必须是GeoPoint。
|
Modifier and Type | Method and Description |
---|---|
double |
LCGeoPoint.distanceInKilometersTo(LCGeoPoint point)
Get distance bw this point and another point in kilometers.
|
double |
LCGeoPoint.distanceInMilesTo(LCGeoPoint point)
Get distance between this point and another geopoint in miles.
|
double |
LCGeoPoint.distanceInRadiansTo(LCGeoPoint point)
Get distance in radians between this point and another GeoPoint.
|
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.