如何使用地址打开谷歌地图? [英] How to open Google Maps using address?
本文介绍了如何使用地址打开谷歌地图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何打开谷歌地图(使用意图或添加谷歌地图到我的应用程序)与地址?我的地址,但我没有纬度/经度。我该怎么办呢?谢谢。
How can I open Google Maps(using Intents or adding Google Maps into my application) with address? I have the address, but I don't have latitude/longitude. How can I do it? Thank you.
推荐答案
低于code使用,
String map = "http://maps.google.co.in/maps?q=" + check;
//其中查看是地址字符串
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(map));
startActivity(i);
这篇关于如何使用地址打开谷歌地图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文