Why google map doen't show cafe, restaurents in suggested areas - android

I am using Google map in my application it shows places in it's suggested area and if i click it, it shows route as my expectation but it never show me any cafe in it's suggestions.
So my question is that, how i get that kind of suggestions from map?
is there any library for that?

Take a look at Google Places API
https://developers.google.com/places/?csw=1
A short tutorial: http://www.androidhive.info/2012/08/android-working-with-google-places-and-maps-tutorial/
OR
http://code.tutsplus.com/tutorials/android-sdk-working-with-google-maps-application-setup--mobile-15771

Related

Map looks overcrowded when restaurants are close to each other

I am working on building an app with a map function. We have parsed restaurants from Google Places and put them on Apple Maps for iOS and Google Maps for Android.
Our main problem is that the map looks very crowded when restaurants happen to be close to each other. See example here: http://picpaste.com/MAP_EXAMPLE-P17m5Aqe.png
We can't figure out a good solution for this. Google/Apple seem to have solved it by showing different restaurants depending on the level of zoom. Is there an easy way to replicate the algorithm?
Update: We have tried clustering but it does not really solve the issue when you zoom in enough (as picture above shows).
Thank you for your help!!
You should use clustering here. There is already an official utility implementation of maps marker clustering here.

Android Google maps locations icons filtering

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.

Google Maps of my country only?

How can I use Google maps in Android app so that it only shows my country?
I mean so that the rest of the world is not featured in the application.
Check out one of Mike Williams' great GMaps tutorials - he shows you how to limit zoom and pan in your map.
If you want some areas to be non-visible, you can try this one: I think that's closest to what you want (the example actually does a similar thing to what you want, using USA as the example).

How do take an existing map and overlay it into google maps on the android platform?

I am working on making a interactive campus map. I am wanting to take an image (below) and overlay it onto Google maps and then add interactive points of interests. I am not seeing how to add or merge the image to the map. Can this be done? Are there any examples out there I missed?
If you want to replace the google map background.
From my experience, I could say no. It can't be done
But if you want to make it like transparent you can put Your map on top of google map and just set transparent.
However, somebody already been done this before. you might got some idea if you see this
http://www.maplib.net/
http://lifehacker.com/213627/embed-any-image-into-a-google-map
Google Maps Developer Documentation

Converting from google maps to open street maps (osmdroid)

I built my application using Google Maps and it is using:
-BalloonItemizedOverlay
-BalloonOverlayView
-ItemizedOverlay
and what it does:
-Displays multiple points on map, each one clickable and balloon appears with relative text + description.
-Displays and updates the marker/point of user's position.
The only reason I want to switch to Open Street Map is because I would like to use the feature "caching map tiles" (presaving maps) which as far as I have looked it up is not allowed with Google Maps.
Can someone help me convert my application thoroughly to use OSMdroid instead of GoogleMaps? Providing me with some guides (very few support for OSMdroid at the moment...)
I have already looked up a lot of codes but they mostly differ in comparison with Google Maps and I can't seem to get it all right. I have managed to display user's location on the map but adding BalloonItemizedOverlays and so on is a hassle.
Anyway just help me out in any way you can - proposals on how to do it, sites with guides, anything :)
Thanks
http://code.google.com/p/osmbonuspack/wiki/Tutorial_1
http://code.google.com/p/osmbonuspack/wiki/Tutorial_2
I think these two tutorials should get you started with Balloons and Customized Balloons
Itemized overlay with osmdroid is quite easy to use, you should give it a try and you will get the feel of it once you try it our.

Categories

Resources