类的使用
cn.leancloud.types.LCGeoPoint
-
使用LCGeoPoint的程序包 程序包 说明 cn.leancloud cn.leancloud.query cn.leancloud.search cn.leancloud.types -
-
cn.leancloud中LCGeoPoint的使用
返回LCGeoPoint的cn.leancloud中的方法 修饰符和类型 方法 说明 LCGeoPointLCObject. getLCGeoPoint(java.lang.String key)Get AVGeoPoint value of specified key.参数类型为LCGeoPoint的cn.leancloud中的方法 修饰符和类型 方法 说明 LCQuery<T>LCQuery. whereNear(java.lang.String key, LCGeoPoint point)Add a proximity based constraint for finding objects with key point values near the point given.LCQuery<T>LCQuery. whereWithinGeoBox(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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. -
cn.leancloud.query中LCGeoPoint的使用
参数类型为LCGeoPoint的cn.leancloud.query中的方法 修饰符和类型 方法 说明 voidQueryConditions. whereNear(java.lang.String key, LCGeoPoint point)voidQueryConditions. whereWithinGeoBox(java.lang.String key, LCGeoPoint southwest, LCGeoPoint northeast)voidQueryConditions. whereWithinKilometers(java.lang.String key, LCGeoPoint point, double maxDistance)voidQueryConditions. whereWithinKilometers(java.lang.String key, LCGeoPoint point, double maxDistance, double minDistance)voidQueryConditions. whereWithinMiles(java.lang.String key, LCGeoPoint point, double maxDistance)voidQueryConditions. whereWithinMiles(java.lang.String key, LCGeoPoint point, double maxDistance, double minDistance)voidQueryConditions. whereWithinRadians(java.lang.String key, LCGeoPoint point, double maxDistance)voidQueryConditions. whereWithinRadians(java.lang.String key, LCGeoPoint point, double maxDistance, double minDistance) -
cn.leancloud.search中LCGeoPoint的使用
参数类型为LCGeoPoint的cn.leancloud.search中的方法 修饰符和类型 方法 说明 LCSearchSortBuilderLCSearchSortBuilder. whereNear(java.lang.String key, LCGeoPoint point)LCSearchSortBuilderLCSearchSortBuilder. whereNear(java.lang.String key, LCGeoPoint point, java.lang.String order)LCSearchSortBuilderLCSearchSortBuilder. whereNear(java.lang.String key, LCGeoPoint point, java.lang.String order, java.lang.String mode, java.lang.String unit)按照地理位置信息远近排序,key对应的字段类型必须是GeoPoint。 -
cn.leancloud.types中LCGeoPoint的使用
参数类型为LCGeoPoint的cn.leancloud.types中的方法 修饰符和类型 方法 说明 doubleLCGeoPoint. distanceInKilometersTo(LCGeoPoint point)Get distance bw this point and another point in kilometers.doubleLCGeoPoint. distanceInMilesTo(LCGeoPoint point)Get distance between this point and another geopoint in miles.doubleLCGeoPoint. distanceInRadiansTo(LCGeoPoint point)Get distance in radians between this point and another GeoPoint.
-