简体   繁体   English

如何搜寻附近的特定地点

[英]How to search specific nearby places

I am creating a Google Maps app. 我正在创建一个Google Maps应用。 In my app I am searching for nearby ATMs by using Places type "ATM". 在我的应用中,我正在使用“地点”类型“ ATM”搜索附近的ATM。 It all works perfectly, but I have to find specific nearby ATMs such as Axis bank ATMs. 一切运行正常,但是我必须找到附近的特定ATM,例如Axis bank ATM。 So how do I do this? 那么我该怎么做呢?

I have implemented the same in my app . 我已经在我的应用程序中实现了相同的功能。 Use the following function for the same: 相同地使用以下功能:

private void showNearbyAtms(){
            Uri mapIntentUri = Uri.parse("geo:0,0?q= Axis atm");
            Intent mapIntent = new Intent(Intent.ACTION_VIEW, mapIntentUri);
            mapIntent.setPackage("com.google.android.apps.maps");
            if (getActivity() != null && mapIntent.resolveActivity(getActivity().getPackageManager()) != null) {
                startActivity(mapIntent);
            }
        }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM