Map View getting Location - android

I'm using a Map View and I'm able to get the current location. but now my problem is I want to put a marker on the specific place that near me. for an example I want to put a marker to all the Starbucks that near to my current location. I don't have any idea how to do this. Any thoughts will be appreciated.

There are innumerable examples of using Map Overlays on Android. Here is one of them. Just take the locations you have and do put them in this code:
Map Overlay Example
If you are asking how to get the locations of the things you want to put on the map, then you are going to need to use something like the Google Places API with documentation found here:
Google Place API Docs

Related

How to detect multiple markers on Google Maps at same location?

I used Google Maps in an app and it is likely that multiple markers are attached to same location where each marker represent a person. In this situation user will not know that there are other markers/persons behind this particular marker.
I looked around to handle this situation and one question on So suggests that I can display a single marker and associate all persons with that single marker.
I want to appear toast if multiple user at same location or display multiple user list.
Any help would be highly appreciated
The Simplest way is to use clustering. You can cluster multiple marker into one
using clusterManager
Please refer to following link for detailed explaination
https://developers.google.com/maps/documentation/android-api/utility/marker-clustering
A demo for the same is given here
https://github.com/googlemaps/android-maps-utils/blob/master/demo/src/com/google/maps/android/utils/demo/CustomMarkerClusteringDemoActivity.java

Google Maps not showing details

I have an android app that is supposed to track an order that is in a certain truck at a given time .Am using the google maps android api for this , my problem is that my map is not detailed enough to show without much effort where the truck is? Could this be an issue with the plan am using ,because am using the standard plan or what might be the issue. i know its a simple question but am not so sure what is happening,thanks in advance.
So if i get it right, your map is already working, but its not detailed enough? You can switch your View to Satellite View like this:
mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);
And if you increase the zoom, you get a more detailed View, for Example:
// Move the camera instantly to yout specific location with a zoom of 17.
mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latlng, 17));

Custom map for my android app

I want to create a custom map for my app.
the things i want are:
it will be a custom map designed by us for a event location(not google map).
all the locations will be displayed on the map like google markers.
just like google map i want users to select a location and get direction from his/her current location to selected destination within that area(my main concern).
Are there any possible solutions to this? Any links, suggestions to start with please let me know.
This is very imp. for me..thank you.
I suggest you look at the OpenStreetMap project. They have all the components you need but it is not going to be a simple task for an area of any size

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

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

How to identify the roads on the map to route just as Google Maps does?

do you know how can we create our map and show the ways from a certain locations to destinations ? Without using google map , just using a picture of a map , is there any way to draw routes on it?I am not asking projects or codes , just need some suggestions related to drawings and considering the obstacles in the way ?Thank you
You should have your way points in somewhere(maybe in db or in xml file etc) and also for getting map base you should have a map provider like yahoo, bing, google or openstreetmap(which is free to use - no api key needed considering others)
after having these two sources you can use Geoserver(which is opensource map data manipulater and provider) to put these sources together and get them as map base image.
considering your "just using a picture of a map" is an owerwellming issue. Because you will have to do some calculation to find where to put your points programatically. So Geoserver does that automatically.
also I suggest you to hava a look at osmdroid and osmbonuspack they may help.

Categories

Resources