谁能看懂这个定位图的经纬度定位器是什么意思?能具体解释一下吗?

百度地图怎么看经纬度?百度地图经纬度查询教程
- 绿茶文章中心
&&&&&&&&&百度地图怎么看经纬度?百度地图经纬度查询教程
百度地图怎么看经纬度?百度地图经纬度查询教程
作者:佚名
来源:绿茶软件园
  百度地图怎么看经纬度?绿茶小编胖胖带来了百度地图经纬度查询教程,如果你不知道百度地图怎么看经纬度的话可以参考下文步骤,希望能够帮助到有需要的朋友哦~
  1、首先进入【百度地图】,在右上角可以看到【地图API】;
  2、进入后,拉到最下面,在【插件与工具】,选择【坐标拾取工具】;
  3、然后进入拾取坐标系统,在搜索框输入要找的地点;
  4、然后选择地点,就可以看到地点的经纬度了。
  步骤就是这么简单,快去试试吧~
绿茶小编猜你还喜欢:
本类推荐本类排行
热门软件热门标签怎样能看出经纬度的度数
人为地在地球上划分的区域?用来定位,有gps定位就能看出所在方位的经纬度,或者你知道你的方位用google地球也能算出来
其他答案(共4个回答)
位置。
经纬度都是人为规定的,纬度分为南纬和北纬,经度为东经和西经
对于精确度要求很高的,也只能通过GPS定位系统来准确判断你所处位置,网上的地图搜索也可以确定,只不是不能精确到具体的某一点,只能细到一条街道。
按照严格的要求,应该是先说纬度,再说 经度,
实际上,无论怎样说都是可以的。特别对非地理专业更没有要求,
最佳答案: 在地球仪上或地图上,经线和纬线相互交织,就构成经纬网。 利用它上面标注的经度和纬度,可以确定地球表面上各地点、各地区和各种地理现象的地理位置...(...
GPS,如果没有GPS,用“谷歌地球”(当然了,前提是有一台电脑)也能准确的确定你所在位置的经纬度。
这是某城市民用飞机场的经纬度
答: 家长们普遍关心的也正是孩子的适应问题,我就担心他不适应,跟不上老师的进度,成绩上不去
答: 是啊,不知道怎么办,三年加深了300多度了!
答: 生活就是柴、米、油、盐,还有就是一家人开开心心的在一起。
答: 团体心理咨询是通过团体内人际交互作用,促使个体在交往中通过观察、学习、体验、认识自我、探讨自我、接纳自我、调整和改善与他人的关系,学习新的态度和行为方式,...
大家还关注
确定举报此问题
举报原因(必选):
广告或垃圾信息
激进时政或意识形态话题
不雅词句或人身攻击
侵犯他人隐私
其它违法和不良信息
报告,这不是个问题
报告原因(必选):
这不是个问题
这个问题分类似乎错了
这个不是我熟悉的地区当前位置: >
地图定位(经纬度的获取与具体位置的获取)
时间: 02:28 来源:网络整理 作者:安卓自学网 阅读:次
& & & & 最近,在看关于经纬度、获取具体位置(地图定位)方面的知识,通过网上的学习以及向大牛们的请教,终于弄清楚地图定位是怎么弄出来的了,哈哈!通过学习,知道了android 定位一般有四种方法,这四种方式分别是:GPS定位,WIFI定准,基站定位,AGPS定位。今天,我要说的是GPS定位,需要GPS硬件支持,直接和卫星交互来获取当前经纬度,这种方式需要手机支持GPS模块(现在大部分的智能机应该都有了)。通过GPS方式准确度是最高的,但是它的缺点也非常明显:1,比较耗电;2,绝大部分用户默认不开启GPS模块;3,从GPS模块启动到获取第一次定位数据,可能需要比较长的时间;4,室内几乎无法使用。这其中,缺点2,3都是比较致命的。需要指出的是,GPS走的是卫星通信的通道,在没有网络连接的情况下也能用。因为google自带的获取地址不能用了,所以只能通过接口来解析具体位置,我也是在网上看来的,这个接口是"/maps/api/geocode/json?latlng={0},{1}&sensor=true&language=zh-CN",可以将经纬度提交上去,解析出具体位置,要用的架包有asynhttp网络请求架包、Gson解析Json架包等。代码如下:package com.example.import java.text.MessageFimport org.apache.http.Himport android.app.Aimport android.location.Cimport android.location.Limport android.location.LocationLimport android.location.LocationMimport android.os.Bimport android.util.Limport android.widget.TextVimport android.widget.Timport bean.GetAimport com.google.gson.Gimport com.loopj.android.http.AsyncHttpCimport com.loopj.android.http.JsonHttpResponseHpublic class MainActivity extends Activity {private TextView tv, jindu,;private Location currentLprivate LocationManager locationMprivate String currentPprivate String mapUriStr = "/maps/api/geocode/json?latlng={0},{1}&sensor=true&language=zh-CN";@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);tv = (TextView) findViewById(R.id.tv);jindu = (TextView) findViewById(R.id.jindu);weidu = (TextView) findViewById(R.id.weidu);// 获取到LocationManager对象locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);// 创建一个Criteria对象Criteria criteria = new Criteria();// 设置粗略精确度criteria.setAccuracy(Criteria.ACCURACY_COARSE);// 设置是否需要返回海拔信息criteria.setAltitudeRequired(false);// 设置是否需要返回方位信息criteria.setBearingRequired(false);// 设置是否允许付费服务criteria.setCostAllowed(true);// 设置电量消耗等级criteria.setPowerRequirement(Criteria.POWER_HIGH);// 设置是否需要返回速度信息criteria.setSpeedRequired(false);// 根据设置的Criteria对象,获取最符合此标准的provider对象 41currentProvider = locationManager.getBestProvider(criteria, true);Log.d("Location", "currentProvider: " + currentProvider);// 根据当前provider对象获取最后一次位置信息 44currentLocation = locationManager.getLastKnownLocation(currentProvider);// 如果位置信息为null,则请求更新位置信息 46if (currentLocation == null) {locationManager.requestLocationUpdates(currentProvider, 0, 0,locationListener);}// 直到获得最后一次位置信息为止,如果未获得最后一次位置信息,则显示默认经纬度 50// 每隔8秒获取一次位置信息 51MyThread myThread = new MyThread();myThread.start();getOk();}/** *& * @Method: getOk * @Description: asynhttp请求方式 * @param: * @return: void * @author: liweikang */private void getOk() {String uriStr = MessageFormat.format(mapUriStr,currentLocation.getLatitude(), currentLocation.getLongitude());AsyncHttpClient client = new AsyncHttpClient();client.get(uriStr, new JsonHttpResponseHandler() {@Overridepublic void onSuccess(int statusCode, Header[] headers,String responseBody) {// TODO Auto-generated method stubsuper.onSuccess(statusCode, headers, responseBody);Gson gson = new Gson();GetAddress ga = gson.fromJson(responseBody, GetAddress.class);if (ga.getStatus().equals("OK")) {bean.Address address = ga.getResults().get(1);tv.setText(address.getFormatted_address());} else {Toast.makeText(MainActivity.this, "地址获取失败!",Toast.LENGTH_SHORT).show();}}});}// 创建位置监听器 85private LocationListener locationListener = new LocationListener() {// 位置发生改变时调用 87@Overridepublic void onLocationChanged(Location location) {Log.d("Location", "onLocationChanged");Log.d("Location","onLocationChanged Latitude" + location.getLatitude());Log.d("Location","onLocationChanged location" + location.getLongitude());}// provider失效时调用 95@Overridepublic void onProviderDisabled(String provider) {Log.d("Location", "onProviderDisabled");}// provider启用时调用101@Overridepublic void onProviderEnabled(String provider) {Log.d("Location", "onProviderEnabled");}// 状态改变时调用107@Overridepublic void onStatusChanged(String provider, int status, Bundle extras) {Log.d("Location", "onStatusChanged");}};/** *& * @ClassName: MyThread * @Description:得到本地的经纬度 * @author: liweikang * @date:
下午1:44:38 */private class MyThread extends Thread {@Overridepublic void run() {while (true) {super.run();currentLocation = locationManager.getLastKnownLocation(currentProvider);runOnUiThread(new Runnable() {@Overridepublic void run() {if (currentLocation != null) {Log.d("Location","Latitude: "+ currentLocation.getLatitude());Log.d("Location","location: "+ currentLocation.getLongitude());jindu.setText("经度:\n"+ currentLocation.getLongitude());weidu.setText("纬度:\n"+ currentLocation.getLatitude());} else {Log.d("Location", "Latitude: " + 0);Log.d("Location", "location: " + 0);jindu.setText("经度:0");weidu.setText("纬度:0");}}});try {Thread.sleep(8000);} catch (InterruptedException e) {Log.e("Location", e.getMessage());}}}}}xml如下:&ScrollView xmlns:android="/apk/res/android"& & xmlns:tools="/tools"& & android:layout_width="match_parent"& & android:layout_height="match_parent"& & android:paddingBottom="@dimen/activity_vertical_margin"& & android:paddingLeft="@dimen/activity_horizontal_margin"& & android:paddingRight="@dimen/activity_horizontal_margin"& & android:paddingTop="@dimen/activity_vertical_margin"& & tools:context=".MainActivity" && & &LinearLayout&& & & & android:layout_width="match_parent"& & & & android:layout_height="match_parent"& & & & android:orientation="vertical"&&LinearLayout&& & android:id="@+id/ll"& & android:layout_width="match_parent"& & android:layout_height="wrap_content"& & android:orientation="horizontal"&& & &TextView&& & & & android:id="@+id/jindu"& & & & android:layout_width="0dp"& & & & android:layout_weight="1"& & & & android:layout_height="wrap_content"& & & & android:textSize="18dp"& & & & android:textColor="@android:color/holo_blue_bright"/&& & &&TextView&& & & & android:id="@+id/weidu"& & & & android:layout_width="0dp"& & & & android:layout_weight="1"& & & & android:layout_height="wrap_content"& & & & android:textSize="18dp"& & & & android:textColor="@android:color/holo_blue_bright"/&&/LinearLayout&& & &TextView& & & & android:id="@+id/tv"& & & & android:layout_below="@id/ll"& & & & android:layout_width="wrap_content"& & & & android:layout_height="wrap_content"& & & & android:textSize="18sp"& & & & android:text="正在搜索位置..."/&&/LinearLayout&&/ScrollView&还有权限别忘记配了哦,&uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&&uses-permission android:name="android.permission.INTERNET"/&第二次写博客,写的不好勿喷,我会加油的,等等再去研究研究百度的SDK,弄懂了再分享给大家,O(∩_∩)O谢谢!
(责任编辑:)}

我要回帖

更多关于 高德地图经纬度定位 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信