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.
Related
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
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'm making an app for android and I'm using an android map to show about 15k markers from a WebService, the map gets really slow, I have searched around and find a solution "Clustering" but I can't implement it in my app, my map is running with the lib "Polaris 2" and I tried "ClusterKraf", but I had no results.
If someone has a better way to show the markers or some way to make clustering please help me.
I have been using Android Map Extensions and Clusterkraf, but finally decided implement the clustering by my self. The clustering could be written in a very simple way and you could get more control in how the elements are showing in the map, etc.
You can read my implementation of clustering in http://arnaldog.wordpress.com/2013/07/31/simple-clustering-with-android-maps-v2/.
I hope that helps you.
Polaris 2 does not have clustering implemented.
Both Clusterkraf and Android Maps Extensions mentioned by iaindownie have demo app on Google Play, which are also open source, so you can download the code from their project sites to try working solution. Then you can copy relevant code into your project.
Over the past few days, I am trying to find a step - by - step tutorial to implement google places with the updated version of google maps (in eclipse for Android) with no success.
In the old tutorials I find , the map doesn't appear, because it is not updated in the v2.
Can anyone suggest a way to proceed? I feel lost with all the scattered information I get, and I don't have the experience to change the old examples by myself.
I want to make a simple app, that finds my current location and displays the cafes and restaurants, within 3Km distance. At this point I have tha map showing my location, and I need a tutorial to guide me into implementing Google Places from scratch.
Please help!
I'm actually making an app quite similar to yours! I haven't updated to v2 yet but from what I can tell, the only major difference in implementation is the use of a MapFragment as opposed to a MapActivity.
So you have the map up, yes? Then you should be able to make calls to Google Places the same way you did with the v1 Maps (since they're separate components and don't depend on each other). If Places is what's giving you trouble, I suggest following this tutorial: http://ddewaele.blogspot.com/2011/05/introducing-google-places-api.html. It's pretty good and only needs a couple of tweaks to get things up and running.
If you're still having trouble, post back and I might be able to help you out with some code.
i found this post helpful,i hope you will find it too,
http://mobile.tutsplus.com/tutorials/android/android-sdk-working-with-google-maps-map-setup/
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.