下午好。我有以下代码
ParseQuery query = new ParseQuery("MyOb");
query.findInBackground(new FindCallback() {
public void done(List<ParseObject> myOb, ParseException e) {
if (e == null) {
for ( i = 0; i < myOb.size(); i++) {
geo1Dub = myOb.get(i).getParseGeoPoint("location").getLatitude();
geo2Dub = myOb.get(i).getParseGeoPoint("location").getLongitude();
geo1Int = (int) (geo1Dub*1E6);
geo2Int = (int) (geo2Dub*1E6);
pointGet = new GeoPoint(geo1Int, geo2Int);
OverlayItem overlayitem = new OverlayItem(pointGet, title, title);
itemizedoverlay.addOverlay(overlayitem);
}
mapOverlays.add(itemizedoverlay);
mapView.postInvalidate();
} else {
}
}
});
从该站点,我正在获取点并将它们显示在地图上。请告诉我如何使用
distanceBetween(double startLatitude, double startLongitude, double endLatitude, double endLongitude, float[] 结果)
向我表明这一点。我的立场将是关键
point = new GeoPoint(geoLat.intValue(), geoLng.intValue());