您现在的位置: 开发 > Android 猎鹰SDK > 开发指南 > 轨迹查询 > 查询终端实时位置
前往查看新版文档

查询终端实时位置 最后更新时间: 2021年01月22日

可以使用服务id和终端id查询某个终端最后一次上报的位置信息,

查询代码如下:

aMapTrackClient.queryLatestPoint(new LatestPointRequest(serviceId, terminalId), new OnTrackListener() {
...
    @Override
    public void onLatestPointCallback(LatestPointResponse latestPointResponse) {
        if (latestPointResponse.isSuccess()) {
            Point point = latestPointResponse.getLatestPoint().getPoint();
            // 查询实时位置成功,point为实时位置信息
        } else {
            // 查询实时位置失败
        }
    }
});


示例
中心
常见
问题
智能
客服