Real time Traffic on Map View in Android - android

I am developing an app with Map View. I had implemented Overlays for Map view referencing from
http://developer.android.com/resources/tutorials/views/hello-mapview.html
which works perfectly. Now, I want to show Real-Time Traffic as Google shows. I had also set the map view property mapView.setTraffic(true); My App is showing like below,
Is it all that to be done or is it possible to show like below
I am looking for some sample, links or tutorials on this. please guide me for the same.
Thanks in advance...
Panache

The second image is what is called a 'street view'. Google does have an API for this but you're limited to 1000 per viewer Google's quota and its just an image so wouldn't be in a Android Map View.
See here: https://developers.google.com/maps/documentation/streetview/ for more details.

Related

Is it possible to hide Map but show only markers Android Google Maps

I am trying to create a Location based augmented reality app which plots marker on top of the camera view.
Mose of the libraries and tutorials are outdated and they are 4+ years old also not stable. Below is the link to things which i have tried and failed.
Links to libraries
Link to tutorial
Link to stack
Im trying to create something like below image which is an iOS app developed using HDAugmentedReality which is very stable and does not overlap.
Since i could not find any library I'm planing to use Google Maps, It rotates according to camera with simulates AR. So i am planning to show only the markers and hide the Google Map View. If this is possible i can easily create an Location based AR app..
Is it possible to hide Maps but show Markers or is there any library which i missed? Thanks in advance .
I believe you can't use the Markers without showing it on Maps. The main purpose of it is to identify the location on a map. My suggestion would be for you to use your own custom overlay for the marked items you'll show.
Check out the Sun Surveyor, its not similar to what you'll do, but the idea of overlaying the information seems plausible (as indicated on the tutorial link you provided).

Circle menu for mapview Marker in Android google maps API V2

I'm looking to create a circle menu for markers in my app that uses Google maps.
I've found this online example of what I am trying to do:http://demo-ee.com/index.php/examples/view/circle-menu-for-marker-with-mx-google-maps-for-expressionengine#
The problem is that this is for google maps in a webview, I'm looking to do this on Android.
Does anyone know if this is possible to achieve with google maps for Android and if it is, how much work would be involved to do it?
Is it possible to rebuild this example code in java to use in an Android app?
thanks
I put this as an answer and not as a comment, but I don't think you can achieve the same.
First of all, on android you don't have the "hover" callback for maps, you can only use the onMarkerClick listener.
You could try to build a custom infowindow (there are a few tutorial online but never followed, so I can't give you a trusted one, you have to try :( ) and check if the iw can be placed around your item. Unfortunately on android there is a limited set of functionalities, but to be honest, I would explore a different UX for that (cards, dialogfragment or other).
Check how google maps behaves when clicking on a place (a view scrollable from bottom with details).
You can also think about using a toolbar/expandingtoolbar

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

Google map API v2 custom overlay

I am developing an android application for showing the floor map of a building inside google maps. I know there is Google floor plans, but it only available in selected countries. So I need to customize the google map. I am done a little by using the accepted answer in this link. But unfortunately I cant adjust the boundaries of the tiles here, thats not I needed. I only need to show the custom floor map only above the building i need to show, other area should be like the default Google maps. How can I achieve that?
Any help will be appreciated. Thanks in advance.
You could use GroundOverlays, which is a simple image which is shown above the map tiles as you define via geo bounds. See more here

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

Categories

Resources