Places Details - Google API for Android - android

I'm trying to develop a very simple Android Application that just tries to imitate some of the built-in Maps application of most Android phones. My goal is
1.) To embed the Google Map on my application (done already)
and
2.) To show the details of the place(landmark) whenever the user hovers over and clicks the marker of the place
I hope I am making sense here. I mean, I've tried to search here in stackoverflow.com if there are questions related to this but as far as I have researched, I did not find any. Please help me

Related

Perform Hardcoded search in Google Maps on Android App

I am making my first android app to track and manage medications.
One of the features I want to include is adding a page that says '"Find Local Pharmacies'.
What I want is very simple - when the user opens this page I want a map to appear with pins on all the places that matched the term 'pharmacy' (within say a 5km radius).
I have never used Google Maps API before so I don't know if this sort of thing is even possible - online searches suggest Google doesn't have a 'search' API, but is there any easy way to do this?
Thanks!
One option would be to use the Google Places API. I see they've got a place type of "pharmacy".

Is it possible to embed Google Navigation in an Android app?

I have an app which opens Google Maps from where the user is likely to start the Google Navigation from point A to B. Is it possible to open Google Maps and therefore Google Navigation only in specific proportion of the screen and display some additional (but minimal) information from my app next to the navigation?
I am thinking of something like this:
Additionally, is it possible to receive a broadcast when during the Google Navigation the user has arrived to her destination?
I know it is a bit far fetched, but maybe there are some ideas.
If you are still interested in knowing about this after 2 years.
Short answer: Yes (with a but).
If you are asking about displaying a full Navigation experience with turn by turn instructions, a puck, routines on Google Maps, then the answer is: It's illegal to do it without Google's permission. If you look at the Lyft app for drivers, they do have a full navigation experience on top of Google Maps because they partnered with them. So, it's possible, but requires direct communication with Google engineers.
For a workaround, you could show an embed Google Maps view in your apps, and show Markers, Polylines. They also have these APIs to get directions from one place to the other one. For example:
https://maps.googleapis.com/maps/api/directions/json?origin=Disneyland&destination=Universal+Studios+Hollywood4&key=<YOUR_API_KEY>
NOTE: Fees will apply when using these APIs. Check their documentation for more details about the workaround.
You can but you need to contact google personally this is google explanations about this subject and the contract page specially for your request https://cloud.google.com/maps-platform/ridesharing/
Not directly from Google map's navigation . But you can create your own by using
Direction API.
https://developers.google.com/maps/documentation/directions/start#sample-request
yes ,
you can use point an geography point by polygone and line canvas for routing the path between two point on google map.
for more reference reffer this Link.

Working on a way to show current Android phone location in Google Maps

Looking for a little bit of help structuring my problem.
I will be traveling with friends to a party weekend and we are plotting locations of places to visit and see on a shared Google map with custom layers.
My thought is that I could add real-time location layers for each attendee, based on the lat/long of those with Android phones.
I'm trying to figure at the moment the elements of the code that I will need and asking the community for help structuring the design.
So far:
Working on a way to broadcast the current lat/long of the Android phone through an API
Determining the best way to import the returns (lat/long) from the API as a layer into Google Maps (thinking KML, but there may be a better solution with GPX or text files)
Once I finish 1 and 2, will write the code to accomplish the process and load to Google Maps
Any guidance is very much appreciated
Why do you need to develop everything of this sort when Google has already provided us with the My Map app. This app is available in Play Sore for Google as well as the App Store for Apple. So all your friends whether an Android or iPhone user can install this app on their phone.
With this app you all can customize the map as per the needs and share inside the group. This app explicitly serves the purpose for the vacation planning when a group is involved.
Take a look on the Google Play Store and the App Store to explore and download.

How to Make LBS applications in Android

Anyone has a tutorial of making LBS applications like this? I want to make an application to determine the trajectory of the city's public transport me, but I did not find his examples everywhere, if you have please help me to develop it, thank you
It is a concept design of my application layout
To develop an android app which uses Google API's would be a combination of Google Maps API, Location Api, Direction API and also Places API(if you want to fetch the details of your source and destination). If you are developing this app for a special transit system in your city than you would specifically need their own set of API to populate your app data.
But if you want to develop something with free open source Google API you can first make use of the Google Play Services by first referring into your app project and then getting the API key, enabling the direction api "ON" in your developer console and writing code.
Please refer to this tutorial in order to get a better insight of the transit system app you want to develop. You can customize you app UI accordingly once you have the data coming in.
Here are the bunch of links from Google's official documentation regarding implementation of all API's.
https://developers.google.com/maps/documentation/android/
https://developers.google.com/maps/documentation/directions/
https://developers.google.com/places/documentation/
Hope this would help!!

Does google maps in android allow any integration? Say long press on a point, or click an address

I know you can embed the google maps view in an android activity, but is it possible to plug anything into the actual google maps app. say if somebody clicked on a result in the map, and instead of the standard screen show a list of options, like when you share an image. Like "tag this". Something like that.
I can't seem to find any info on that. Its all on integrating MapView into your app.
To my knowledge that's not possible. You cannot program your own copy of Google Maps (that would incorporate the features that you want to add) either, because it's one of the proprietary Google Apps (like the Gmail-, YouTube-, and Market-apps), for which they don't release the code.

Categories

Resources