Getting the name of a location from google maps - android

I am a dummy in android app development. I have developed an app that when a button is clicked, the google maps application opens. I want to get the name of the location that has been selected in the google maps application and use it in my own application. Is it possible to do so? Plus, can it be done without integrating google maps or google places API in the application?

You want to use the "Start activity for result" construct. With that, and some data in an intent, you can request a location like that from Google Maps.
I would also recommend allowing a person to share a location from Maps to your app. Depending on what your app would be doing with the data.

You can get location name from the point you clicked on a map.
You can do it using the device to query into the Google Map Api or you can write a rest service where you pass in your location and the service hand you back the location name.

Related

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

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.
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

how to store distance and time to reach between two location in Sqlite Database when open Google Map from An App using Intent?

how to parse and store distance and time to reach in SQlite Database in Android when open Google Map from using intent showing route and distance Automatically by navigating between two points?.
I don't think you can parse data directly from the Google Maps app. There are a couple of ways to go about this though. I would look at implementing some of the Google Maps API in your app to run before starting the intent. Or setup navigation in your app between the two points directly.
If you only want distances and travel times, then I would look at the Distance Matrix API. If you want inbuilt directions have a look at the other maps API like the full Android Maps API.

how to return from google directions to my app (android)

i am writing an android app that uses fusedLocation along with google maps api and google directions api.
i define a geoFence and upon entering the geoFence the app launches the google directions app.
my question is how do i return to my app when the user arrived to his destination in google directions app? is it possible?
Check the user location with its destination location if it's equal then use finish() to finish your Google Direction activity or you can use startActivityForResult()

Shared Google Map Between All Users on Mobile

I was trying to work on creating a shared map for all users by using the Google Maps API. I would like User A to be able to see User B on the map, assuming User B is sharing his location. How can this be accomplished using Google Maps API on Android or iOS? This would basically resemble the Uber application where the costumers can see the drivers on the map.
As far as I know this functionality isn't really available through the API. What you could do is check if the user's location is available for sharing. Then using your own backend, most likely a MBaaS, share the location data with people they allowed access to their location. Then you could just draw a marker on the map representing the user

Navigating& providing directions to a user's GPS location

I've read Google's API policy on Location Services & Maps API, they do not allow one to make an app that provides directions to a user's location. I however wish to make such an app. I know I need to use a third party Maps API, but im unsure if this sort of app would be allowed on the play store.
I've searched extensively. The only references to this not being allowed in the the Maps API terms of service, but no where else. +
The idea is simple, one person sends a request to another, and they track each other with directions provided to find them.
Revalent reddit post by myself.
http://www.reddit.com/r/androiddev/comments/2qcm22/would_i_get_in_trouble_w_googles_policys_if_i/
I do not understand that it is difficult , you can use Google maps , first try to get another exact coordinates of latitude and longitude , and put them on a Google map , then make getting location via satellite.

Categories

Resources