| 程序包 | 说明 |
|---|---|
| cn.leancloud | |
| cn.leancloud.query | |
| cn.leancloud.search | |
| cn.leancloud.types |
| 限定符和类型 | 方法和说明 |
|---|---|
LCGeoPoint |
LCObject.getLCGeoPoint(String key)
Get AVGeoPoint value of specified key.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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。
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.