1

I use the following code to call google map and retrieve data using implicit intent.

Intent searchAddress = new Intent(Intent.ACTION_VIEW, Uri
                        .parse("geo:0,0?q=" + location));
startActivity(searchAddress);**

I want some information about hospitals instead of showing all the data in Google Maps.

Is this possible to specify the location and place in implicit intent ACTION VIEW..?

Sathyajith Bhat
  • 21,321
  • 22
  • 95
  • 134
Rethinavel
  • 3,912
  • 7
  • 28
  • 49

1 Answers1

0

You can use Google Maps/Google Places API directly, without calling Intents.

All yo need is:

  • Obtain Google Maps API key
  • Prepare an URL with the query parameters like location and what you're looking for (See the reference here).
  • Fetch the response from the URL (there are lot of tutorials how to download sth on Android)
  • Parse the response, for example using JSON library.
Community
  • 1
  • 1
Mariusz Jamro
  • 30,615
  • 24
  • 120
  • 162