Giter Site home page Giter Site logo

android-multiroute-display's Introduction

android-navi-multiroute-display

多路径规划、导航示例

前述

扫一扫安装##

Screenshot

##多路径规划、导航示例

使用方法##

###1:配置搭建AndroidSDK工程###

###2:运行示例配置项###

  • AndroidManifest.xml 配置高德开放平台key
 <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <meta-data
            android:name="com.amap.api.v2.apikey"
            android:value="高德开放平台android key" />

        <activity android:name="com.amap.multiroute.CalculateRouteActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="com.amap.multiroute.RouteNaviActivity" />
        <activity android:name="com.amap.multiroute.StrategyChooseActivity"></activity>
    </application>
  • string.xml 配置科大讯飞Appid
 <string name="app_id">科大讯飞Appid</string>
  • CalculateRouteActivity 设置导航起终点
 private NaviLatLng endLatlng; //导航终点
 private NaviLatLng startLatlng; //导航起点
  • CalculateRouteActivity 选择模拟\真实导航
 /**
     * 开始导航
     */
    private void startNavi() {
        Intent gpsintent = new Intent(getApplicationContext(), RouteNaviActivity.class);
        gpsintent.putExtra("gps", false); // gps 为true为真实导航,为false为模拟导航
        startActivity(gpsintent);
    }

##效果展示## ####多路径规划 Screenshot

####驾车偏好设置 Screenshot

####导航 Screenshot

android-multiroute-display's People

Contributors

music1983 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.