Google maps app allow us to set Home and Office location.Is there a way i can read these locations in my android code.I am writing an app and i need to know whether user has set his/her Home and Office location in google maps and if yes then what are they?I can put the google map in my app and can ask the user to locate his/her Home and office location but it would be duplicate effort by the user and won't look good.Any other suggestions are also welcome here
You can use the Google Geocoding API for getting the address - GeoCoding API
Hope this helps.
Related
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
in one of my current app's i have a requirement that, i need to get location history from user mobile. In google maps android app there is a option called "Timeline" in that i can see all the location of user which he traveled. I want these list.
Is there any google API to get the location history. Can anyone help me or guide me. Thanks in advance.
so google maps intent can take in coordinates/address and take you there within the google maps app, but my question is, is there a way to retrieve an address from Google maps app, which I can use in my app.
Example: I start an intent to Google maps. I select a McDonalds in Seattle. How do I get the address of that McDonalds WITHOUT writing my own Maps Activity?
Google developers has put the exact opposite of what I want to do: https://developers.google.com/maps/documentation/android-api/intents
Hope you guys can help
I think you have to look into Places API for Android. This API has a PlacePicker dialog, the UI where the user can select a place and obtain all related information.
Please have a look at this page to get more information:
https://developers.google.com/places/android-api/placepicker
Hope it helps!
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.
I am developing an application,I would like publish my application in android market. I want to find what are the user using my application and his location point out in Google map,How to find my user for my application,How to possible?
Thanks all
You need a server, which will collect the information from your app. And the app after installation will send the location info( if it is available ) through internet to your server. After you have the location info, you will be able to put the marks on google maps.