Android: Open default google map application and get the pinned location back

125 views Asked by At

I want to open the default google maps application from my application, let the user pin a location, and get the pinned location details back to my application. somekind of startActivityForResult(), where the result data would be a latitude,longitude or anything like that.

is there a way to do this? is it possible?

PS: I already know/worked with the maps sdk, but in this application this is the only use case with maps, that's why i can't afford using the sdk.

1

There are 1 answers

6
Gavin Wright On BEST ANSWER

No, you can't do that with the Google Maps app. Here's a PlacePicker library that accomplishes this task though:

https://github.com/suchoX/PlacePicker