Coder Social home page Coder Social logo

android-path-smooth's Introduction

android-path-smooth

轨迹平滑处理示例

本工程为基于高德地图Android SDK进行封装,实现了定位轨迹的平滑优化处理。

前述

功能描述

基于3D地图SDK,对真实轨迹进行处理,实现去噪、平滑和抽稀。

效果展示

Screenshot Screenshot

原始轨迹和处理后轨迹

扫一扫安装

Screenshot

使用方法

1:配置搭建AndroidSDK工程

2:实现方法

// 获取轨迹坐标点
List<LatLng> mOriginList = new ArrayList<LatLng>();

PathSmoothTool mpathSmoothTool = new PathSmoothTool();
//设置平滑处理的等级
mpathSmoothTool.setIntensity(4);
List<LatLng> pathoptimizeList = mpathSmoothTool.pathOptimize(originlist);
//绘制轨迹,移动地图显示
if (mOriginList != null && mOriginList.size()>0) {
    mOriginPolyline = amap.addPolyline(new PolylineOptions().addAll(mOriginList).color(Color.GREEN));
    amap.moveCamera(CameraUpdateFactory.newLatLngBounds(getBounds(mOriginList), 200));
}

android-path-smooth's People

Contributors

mayan0 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.