Im using the latest Google Map API. What I would like to do is that I have an image of plan of a building. I would like to put this on the correct location and display this image instead of the normal map. It would kinda be like if you zoom in alot on a train station and you get more details.
Is there any way to do this?
There is an example with the official Google Maps for Android API sample code (installation how-to) called GroundOverlayDemoActivity.java.
You could try this and check if it is a starting point for further investigations.
Here is a screenshot of this activity:
Related
Google Places API - How to get the mini map with two photos like so?
But, a part of the image was missing. Can anyone guide me?
I only can get the bitmap image left side part, but it missing the right side part of the photo with Google text.
The guide: https://developers.google.com/places/android-api/photos
Here are two ways you can put a map next to the photo:
Use a MapView object from the Android Maps API SDK.
Use the Google Static Maps API to request a map bitmap via HTTP.
What I can suggest is that you try the Place Photo Requests HTTP request:
https://maps.googleapis.com/maps/api/place/photo?parameters
sample:
https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=CnRtAAAATLZNl354RwP_9UKbQ_5Psy40texXePv4oAlgP4qNEkdIrkyse7rPXYGd9D_Uj1rVsQdWT4oRz4QrYAJNpFX7rzqqMlZw2h2E2y5IKMUZ7ouD_SlcHxYq1yL4KbKUv3qtWgTK0A6QbGh87GB3sscrHRIQiG2RrmU_jF4tENr9wGS_YxoUSSDrYjWmrNfeEHSGSc3FyhNLlBU&key=YOUR_API_KEY
You might also want to try this answer from this thread using the Panoramio API.
Is it possible to take a screenshot of the google map programmatically in android that is currently outside of my screen/viewing window.
It is sadly not capable of doing that right now. But you can hard code it. there is a read the location method (and you can add distance or radius d to that to find other locaitons and record them)on google maps api
Scenario :
In my android app, I have a Google Map that is showing me my friend's location. My friend and I can move from their position and I still want to get him (finding friend's location/updated_location is not an issue). To reach him fast, I am implementing navigation functionality to it.
Question :
How can I implement navigation to Google Map? I heard about OpenTripPlanner, but I'm not sure if I can use it in Google Maps.
As my friend's and my location can change, I want to update the navigation path from my current location to his current location. (An Idea I have is to recalculate the path when friend's location changes).
I also want to implement voice navigation to my app. How can I get this?
Any suggestion which will satisfy above requirement will be appreciated.
Please suggest sample code and working functions that can be used.
You can take a look at this blog post I wrote on implementing a navigation Polyline to your Google Maps API V2:
Google Maps API V2 Polyline Navigation
There you will find the needed method to get the navigation instruction from Google Directions API and to paint it on your map.
I need to develop an application for Android that uses the Google Maps API.
I the need to use a marker that show me my position and rotation exactly like the one shown in the figure (Link: http://3.bp.blogspot.com/-Sy61Gjk7aKA/Tw2Lo553AiI/AAAAAAAAAVI/oJ7tiGb-lts/s1600/2.jpg).
Is it possible to realize?
I wrote an answer to a similar question: Google Map Heading Marker or Indicator
I haven't tried it in 3D, but there's no reason why it shouldn't work.
I have searched for hours on the web for an example of implementing the direccions service on my android app.
I am using the google maps android api 2.
Basically I want the directions from the actual position and a marker position selected by the user.
I want to make clear that I donĀ“t want to launch a web browser or the google maps aplication, I want to implement the service on my own app.
Till now I found some examples about drawing the route on tha map, which are ok
http://wptrafficanalyzer.in/blog/gps-and-google-map-in-android-applications-series/
Get driving directions using Google Maps API v2
so I just miss the indications part of the service so y can show on my own listview with arrows (turn to left , to right , etc).
Thanks for reading my question
I'm not sure what you want. In your second link about Google Map API v2, the data for drawing maps comes from maps.googleapis.com .You can see https://developers.google.com/maps/documentation/directions/ for more documentation about that.
The xml returned from maps.googleapis.com include <html_instructions> tag which contains instruction like turn left or turn right. So you just need to parse that xml and use <html_instructions> tag for information you need on your listview.
I hope this helps.