经度43.812474经纬度查询地图87.585592 具体是什么位置?

求助一个输入经纬度查询具体位置的APP。。万谢!_图拉丁吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:796,838贴子:
求助一个输入经纬度查询具体位置的APP。。万谢!收藏
或者网址也可以。。事情是这样的,我弄了个GPS定位功能的毕业作品、、可以显示出当前位置的经纬度,但是没办法知道该经纬度对应的具体街道门牌号什么的。然后,我的指导老师说,展示的时候需要知道经纬度对应的地址信息。。所以现在需要一个输入经纬度 可以查询具体位置的工具。。我找了半天都没有找到合适的。。。求各位图钉推荐一下
防尘补丁丁丁丁丁丁丁
最让我难过的是那晚脱下裙子的你却掏出了我想掏的东西
 十亿人民九亿骗,福建人民是教练,总部设在莆田县,开门诊、包医院,全国都有连锁店,泌尿科、不孕症,全国游医来坐诊,打广告、吹破天,一下搞你好几千。   --来自助手版贴吧客户端
去百度api看看,没有的话就百度地图或者高德地图有sdk可以经纬度转换具体地址
登录百度帐号推荐应用
为兴趣而生,贴吧更懂你。或我国各大城市经纬度查询表_图文_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
我国各大城市经纬度查询表
上传于||暂无简介
阅读已结束,如果下载本文需要使用0下载券
想免费下载更多文档?
定制HR最喜欢的简历
你可能喜欢一个百度定位例子,把自己的经纬度转换为具体位置 - 封锁现场 - 博客园
喜欢的童鞋点击下载安装:
BaiduMap主包:
1 package com.xmb.BaiduM
3 import com.baidu.mapapi.BMapM
4 import com.baidu.mapapi.GeoP
5 import com.baidu.mapapi.LocationL
6 import com.baidu.mapapi.MKAddrI
7 import com.baidu.mapapi.*;
8 import com.baidu.mapapi.MKDrivingRouteR
9 import com.baidu.mapapi.MKGeneralL
10 import com.baidu.mapapi.MKPoiR
11 import com.baidu.mapapi.MKS
12 import com.baidu.mapapi.MKSearchL
14 import com.baidu.mapapi.MKTransitRouteR
15 import com.baidu.mapapi.MKWalkingRouteR
16 import com.baidu.mapapi.MapA
17 import com.baidu.mapapi.MapC
18 import com.baidu.mapapi.MapV
25 import android.app.A
26 import android.graphics.drawable.D
27 import android.location.L
28 import android.os.B
29 import android.widget.TextV
30 import android.widget.T
32 public class BaiduMap extends Activity {
public TextView tv1, tv2;
public BMapManager mapM
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.mylocation);
tv1=(TextView)findViewById(R.id.result1);
tv2 = (TextView) this.findViewById(R.id.result2);
mapManager=new BMapManager(this);
mapManager.init("53351EE4BDE7BD870F41A0B4AFDAF9", new MyMKGeneralListener());
mapManager.getLocationManager().setNoitifyInternal(20, 5);
mapManager.getLocationManager().requestLocationUpdates(new MyLocationListener());
mapManager.start();
mapManager = new BMapManager(this);
mapManager.init("EDB67AD764DABA02A4DDC58D5485CCD",
new MyMKGeneralListener());
// 设置通知间隔:iMaxSecond - 最大通知间隔,单位:秒;iMinSecond - 最小通知间隔,单位:秒
mapManager.getLocationManager().setNotifyInternal(20, 5);
mapManager.getLocationManager().requestLocationUpdates(
new MyLocationListener());
mapManager.start();
// 定位自己的位置,只定位一次
class MyLocationListener implements LocationListener {
public void onLocationChanged(Location arg0) {
double jindu1 = arg0.getLatitude();
double weidu1 = arg0.getLongitude();
int jindu = (int) (arg0.getLatitude()*1000000);
int weidu = (int) (arg0.getLongitude()*1000000);
tv1.setText("经度:" + jindu1 + ",纬度:" + weidu1);
System.out.println("经度:" + jindu1 + ",纬度:" + weidu1);
MKSearch search = new MKSearch();
search.init(mapManager, new MyMKSearchListener());
search.reverseGeocode(new GeoPoint(jindu, weidu));
class MyMKSearchListener implements MKSearchListener {
public void onGetAddrResult(MKAddrInfo arg0, int arg1) {
if (arg0 == null) {
tv2.setText("没有获取想要的位置");
GeoPoint point = arg0.geoPt;
tv2.setText("地址:" + arg0.strAddr + ",坐标:"
+ point.getLatitudeE6() + "," + point.getLongitudeE6());
public void onGetDrivingRouteResult(MKDrivingRouteResult arg0, int arg1) {
// TODO Auto-generated method stub
public void onGetPoiResult(MKPoiResult arg0, int arg1, int arg2) {
// TODO Auto-generated method stub
public void onGetTransitRouteResult(MKTransitRouteResult arg0, int arg1) {
// TODO Auto-generated method stub
public void onGetWalkingRouteResult(MKWalkingRouteResult arg0, int arg1) {
// TODO Auto-generated method stub
// 常用事件监听,用来处理通常的网络错误,授权验证错误等
class MyMKGeneralListener implements MKGeneralListener {
public void onGetNetworkState(int arg0) {
public void onGetPermissionState(int arg0) {
BMapApiDemoApp包:
1 package com.xmb.BaiduM
3 import android.app.A
4 import android.widget.T
6 import com.baidu.mapapi.*;
8 public class BMapApiDemoApp extends Application {
static BMapApiDemoApp mDemoA
//百度MapAPI的管理类
BMapManager mBMapMan = null;
// 授权Key
// TODO: 请输入您的Key,
// 申请地址:/wiki/static/imap/key/
String mStrKey = "53351EE4BDE7BD870F41A0B4AFDAF9";
boolean m_bKeyRight = true;
// 授权Key正确,验证通过
// 常用事件监听,用来处理通常的网络错误,授权验证错误等
static class MyGeneralListener implements MKGeneralListener {
public void onGetNetworkState(int iError) {
Toast.makeText(BMapApiDemoApp.mDemoApp.getApplicationContext(), "您的网络出错啦!",
Toast.LENGTH_LONG).show();
public void onGetPermissionState(int iError) {
if (iError ==
MKEvent.ERROR_PERMISSION_DENIED) {
// 授权Key错误:
Toast.makeText(BMapApiDemoApp.mDemoApp.getApplicationContext(),
"请在BMapApiDemoApp.java文件输入正确的授权Key!",
Toast.LENGTH_LONG).show();
BMapApiDemoApp.mDemoApp.m_bKeyRight = false;
public void onCreate() {
mDemoApp = this;
mBMapMan = new BMapManager(this);
mBMapMan.init(this.mStrKey, new MyGeneralListener());
super.onCreate();
//建议在您app的退出之前调用mapadpi的destroy()函数,避免重复初始化带来的时间消耗
public void onTerminate() {
// TODO Auto-generated method stub
if (mBMapMan != null) {
mBMapMan.destroy();
mBMapMan = null;
super.onTerminate();
xml文件就只是一个TextView控件,清单注意加权限的哦
阅读(...) 评论()
Copyright & 封锁现场
Powered by:
模板提供:27654人阅读
& & & &在Android应用程序中,可以使用LocationManager来获取移动设备所在的地理位置信息。看如下实例:新建android应用程序TestLocation。
1、activity_main.xml布局文件
&LinearLayout xmlns:android=&/apk/res/android&
android:layout_width=&fill_parent&
android:layout_height=&fill_parent&
android:id=&@+id/positionView&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
&/LinearLayout&& & 用于显示获取到的位置信息。
2、MainActivity.java
package com.example.
import java.util.L
import android.app.A
import android.content.C
import android.location.L
import android.location.LocationL
import android.location.LocationM
import android.os.B
import android.view.M
import android.widget.TextV
import android.widget.T
public class MainActivity extends Activity {
private TextView postionV
private LocationManager locationM
private String locationP
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//获取显示地理位置信息的TextView
postionView = (TextView) findViewById(R.id.positionView);
//获取地理位置管理器
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
//获取所有可用的位置提供器
List&String& providers = locationManager.getProviders(true);
if(providers.contains(LocationManager.GPS_PROVIDER)){
//如果是GPS
locationProvider = LocationManager.GPS_PROVIDER;
}else if(providers.contains(LocationManager.NETWORK_PROVIDER)){
//如果是Network
locationProvider = LocationManager.NETWORK_PROVIDER;
Toast.makeText(this, &没有可用的位置提供器&, Toast.LENGTH_SHORT).show();
//获取Location
Location location = locationManager.getLastKnownLocation(locationProvider);
if(location!=null){
//不为空,显示地理位置经纬度
showLocation(location);
//监视地理位置变化
locationManager.requestLocationUpdates(locationProvider, 3000, 1, locationListener);
* 显示地理位置经度和纬度信息
* @param location
private void showLocation(Location location){
String locationStr = &维度:& + location.getLatitude() +&\n&
+ &经度:& + location.getLongitude();
postionView.setText(locationStr);
* LocationListern监听器
* 参数:地理位置提供器、监听位置变化的时间间隔、位置变化的距离间隔、LocationListener监听器
LocationListener locationListener =
new LocationListener() {
public void onStatusChanged(String provider, int status, Bundle arg2) {
public void onProviderEnabled(String provider) {
public void onProviderDisabled(String provider) {
public void onLocationChanged(Location location) {
//如果位置发生变化,重新显示
showLocation(location);
protected void onDestroy() {
super.onDestroy();
if(locationManager!=null){
//移除监听器
locationManager.removeUpdates(locationListener);
public boolean onCreateOptionsMenu(Menu menu) {
// I this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
& &从上面可以看出,获取地理位置信息主要分如下步骤:
& &(1)获取LocationManager实例,通过getSystemService方法,传入Context.LOCATION_SERVICE参数。
& &(2)获取可用的位置提供器,有GPS_PROVIDER、NETWORK_PROVIDER、PASSIVE_PROVIDER三种,前两种比较常用。
& &(3)将(2)获取到的位置提供器传入LocationManager的方法getLastKnownLocation,即可获取Location信息。
& & 如果移动设备地理位置不断发生变化,则实时更新需要进行如下步骤:
& &(4)调用LocationManager的requestLocationUpdates方法,第一个参数是位置提供器,第二个参数是监听位置变化的时间间隔(毫秒),第三个参数是监听位置变化的距 & & & & & & 离间隔(米),第四个参数是LocationListener监听器
& & (5)当位置发生变化后,就会调用监听器的onLocationChanged方法。
& & (6)为了省电,节约资源,当程序关闭后,调用LocationManager的removeUpdates方法移除监听器。
3、获取权限
& & 修改AndroidManifest.xml,添加如下代码:
&uses-permission android:name=&android.permission.ACCESS_FINE_LOCATION&/&
&uses-permission android:name=&android.permission.ACCESS_COARSE_LOCATION& /&
&uses-permission android:name=&android.permission.ACCESS_COARSE_LOCATION&/&
& &使用模拟器进行测试:点击send
& & & & & & & && & & & & & & & & & & & & & & & & & & & & & & & &
& & & & & & & & & & & & & & & & & & & & & & & & & & & & &&
& &可以使用Geocoding API查找具体对应的位置。如下:
(1)修改MainActivity.java
package com.example.
import java.util.L
import org.apache.http.HttpE
import org.apache.http.HttpR
import org.apache.http.client.HttpC
import org.apache.http.client.methods.HttpG
import org.apache.http.impl.client.DefaultHttpC
import org.apache.http.util.EntityU
import org.json.JSONA
import org.json.JSONO
import android.app.A
import android.content.C
import android.location.L
import android.location.LocationL
import android.location.LocationM
import android.os.B
import android.os.H
import android.os.M
import android.view.M
import android.widget.TextV
import android.widget.T
public class MainActivity extends Activity {
private TextView postionV
private LocationManager locationM
private String locationP
public static final int SHOW_LOCATION = 0;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//获取显示地理位置信息的TextView
postionView = (TextView) findViewById(R.id.positionView);
//获取地理位置管理器
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
//获取所有可用的位置提供器
List&String& providers = locationManager.getProviders(true);
if(providers.contains(LocationManager.GPS_PROVIDER)){
//如果是GPS
locationProvider = LocationManager.GPS_PROVIDER;
}else if(providers.contains(LocationManager.NETWORK_PROVIDER)){
//如果是Network
locationProvider = LocationManager.NETWORK_PROVIDER;
Toast.makeText(this, &没有可用的位置提供器&, Toast.LENGTH_SHORT).show();
//获取Location
Location location = locationManager.getLastKnownLocation(locationProvider);
if(location!=null){
//不为空,显示地理位置经纬度
showLocation(location);
Toast.makeText(this, &location为空&, Toast.LENGTH_SHORT).show();
//监视地理位置变化
locationManager.requestLocationUpdates(locationProvider, 3000, 1, locationListener);
private Handler handler = new Handler(){
public void handleMessage(Message msg){
switch(msg.what){
case SHOW_LOCATION:
String position = (String) msg.
postionView.setText(position);
* 显示地理位置经度和纬度信息
* @param location
private void showLocation(final Location location){
/*String locationStr = &维度:& + location.getLatitude() +&\n&
+ &经度:& + location.getLongitude();
postionView.setText(locationStr);*/
new Thread(new Runnable() {
public void run() {
//组装反向地理编码的接口位置
StringBuilder url = new StringBuilder();
url.append(&/maps/api/geocode/json?latlng=&);
url.append(location.getLatitude()).append(&,&);
url.append(location.getLongitude());
url.append(&&sensor=false&);
HttpClient client = new DefaultHttpClient();
HttpGet httpGet = new HttpGet(url.toString());
httpGet.addHeader(&Accept-Language&,&zh-CN&);
HttpResponse response = client.execute(httpGet);
if(response.getStatusLine().getStatusCode() == 200){
HttpEntity entity = response.getEntity();
String res = EntityUtils.toString(entity);
JSONObject jsonObject = new JSONObject(res);
//获取results节点下的位置信息
JSONArray resultArray = jsonObject.getJSONArray(&results&);
if(resultArray.length() & 0){
JSONObject obj = resultArray.getJSONObject(0);
//取出格式化后的位置数据
String address = obj.getString(&formatted_address&);
Message msg = new Message();
msg.what = SHOW_LOCATION;
handler.sendMessage(msg);
}catch(Exception e){
e.printStackTrace();
}).start();
* LocationListern监听器
* 参数:地理位置提供器、监听位置变化的时间间隔、位置变化的距离间隔、LocationListener监听器
LocationListener locationListener =
new LocationListener() {
public void onStatusChanged(String provider, int status, Bundle arg2) {
public void onProviderEnabled(String provider) {
public void onProviderDisabled(String provider) {
public void onLocationChanged(Location location) {
//如果位置发生变化,重新显示
showLocation(location);
protected void onDestroy() {
super.onDestroy();
if(locationManager!=null){
//移除监听器
locationManager.removeUpdates(locationListener);
public boolean onCreateOptionsMenu(Menu menu) {
// I this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
(2)修改AndroidManifest.xml
&uses-permission android:name=&android.permission.ACCESS_FINE_LOCATION&/&
&uses-permission android:name=&android.permission.ACCESS_COARSE_LOCATION& /&
&uses-permission android:name=&android.permission.ACCESS_COARSE_LOCATION&/&
&uses-permission android:name=&android.permission.INTERNET&/&
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:481145次
积分:7618
积分:7618
排名:第1945名
原创:345篇
转载:39篇
评论:61条
微信公众号
: @残缺的孤独
新浪微博号
: @残缺的孤独
文章:10篇
阅读:6898
文章:17篇
阅读:44180
文章:27篇
阅读:44978
文章:14篇
阅读:13425
文章:12篇
阅读:20416
(1)(12)(4)(7)(8)(10)(31)(2)(2)(6)(4)(10)(4)(8)(1)(3)(15)(32)(9)(2)(17)(12)(28)(5)(14)(10)(2)(2)(8)(2)(10)(3)(2)(3)(1)(3)(23)(49)(19)}

我要回帖

更多关于 百度地图经纬度查询 的文章

更多推荐

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

点击添加站长微信