Is this possible in Android, when i will say a name of place google map pointer will zoom to that place. i.e. I want to search Map by voice
if possible then how to do this? Though i have done so many apps in Google map, but din't try this before! Can any body help?
this should be useful to start off.then you can go through these APIs.If you want to include the voice recoginition part , now APIs are available from level 8.check this out. RecognizerIntent.you can even use the Voice recoginition example
Check out the animateTo method of the MapController class. I think this will do what you're looking for.
Related
I searched google and unable to find the correct way to achieve this. I have to add two google maps activity to my application. Already merged the manifest. Here is the tricky part, I want one map with direction api enabled, and the other without. Now if I click on the marker, a button shows up in the map where I want the direction api and that's fine. But it is the same with the other one. What is the solution here? Any suggestions will work! Do I need to get another key for thr map?
You have to override onMarkerClick method.
See documentation:
https://developers.google.com/maps/documentation/android-sdk/marker#marker_click_events
I have a problem with Google Maps where I need to hide some icons that are shown automatically on the map such as museums, bus stops, parks etc.
I am having problems searching the documentation for this because I do not even know how these marker icons are called in Google Maps. I would highly appreciate any information you have that can help me find a solution, thank you in advance.
You would need to use Places API for this.
Would need to do poi.park visiblity turn off.
You can see all of the supported places type here.
To see how to use Places API in Android, you can check this link out.
I need to make an Android app where the users have an option to draw a polyline on Google Maps and when the touch is removed, then do some action with the plotted polyline. Drawing and performing action is secondary. But the question is how could I achieve this?
Is there any predefined drawing tool (something like http://googlegeodevelopers.blogspot.in/2011/11/make-your-map-interactive-with-shape.html for JavaScript) to be used in google maps, or do I need to go with customization? Please suggest, or provide any links.
And can we extract the points to compare them with the ideal answer which was to be traced?
But the question is how could I achieve this?
With code. ;)
do I need to go with customization?
Yes. You would have to code all the functionality yourself. AFAIK there is no library that does that and of course Google Maps Android API v2 doesn't (and most probably won't) provide such functionality because it is too specific. I still think this would make a pretty useful library.
And can we extract the points to compare them with the ideal answer which was to be traced?
Yes. That would be simple after you are done with everything else.
Polyline polyline = ...
List<LatLng> extractedPoints = polyline.getPoints();
Simply use google maps api Google map API v2 following link might help you with the code.
code reference
Is there a way to mark certain location on android google map like how you can put pins on iPhone apple maps and if so, can you show me or tell me how. I am new to android development and would really appreciate it.
Yes, you use a GeoPoint. Have a look at this tutorial for help on making a mapping app. TUTORIAL
Thankfully, putting a pointer on a map is fairly easy. Basically, you start with a very basic app. Instead of extending Activity, you extend MapActivity. You can then start the tutorial here to create a basic GUI.
Unfortunately, getting a map up and running takes a bit of work. Before you can even see a map, you need a Google Maps API key. It's explained in the documentation, but it can be a bit confusing. Here is a great tutorial explaining how to get an API key.
Once you have a key, you can fire up the example code from the tutorial. Make sure you have a data connection or else you won't see the map tiles. In addition, make sure you have internet permissions in your AndroidManifest.xml file. You also need to paste your new API key into your MapView XML code. The tutorial explains all of this quite nicely.
Once you have all that set up, it's easy enough to add a geographic coordinate to the map. I could explain it here, but Google does a good enough job on the subject. Follow their directions on how to create an ItemizedOverlay class. Then find the coordinates of your house or something and see it on the map.
Good luck!
I am currently developing an application which has a maps feature. My map is working, but I still need to create a Directions option. In previous versions of the Android SDK there used to be a class called DrivingDirections, which did exactly what I want. Now it's gone and I don't know how to add this feature to my current map. I read that Google have updated their terms thus making the use of Directions in apps kinda illegal or something like that. But there are Directions in my built-in Maps application. So my question is - Is there any way for me to pass parameters (longitude, latitude) from my application to the built-in application so that the built-in Maps can then draw the route from the start point to the end point?
P.S. I don't necessarily need this to be done by passing parameters. Any solution will be fine, as long as I can draw the route from point A to point B on my already displayed map.
Thank you.
Is there any way for me to pass
parameters (longitude, latitude) from
my application to the built-in
application so that the built-in Maps
can then draw the route from the start
point to the end point?
No, sorry, at least not through any published and documented mechanism.
Your best bet is:
http://www.openstreetmap.org/
or perhaps collaborating with these fine folks:
http://code.google.com/p/andnav/