Navigation in android app for updating of destination location - android

Scenario :
In my android app, I have a Google Map that is showing me my friend's location. My friend and I can move from their position and I still want to get him (finding friend's location/updated_location is not an issue). To reach him fast, I am implementing navigation functionality to it.
Question :
How can I implement navigation to Google Map? I heard about OpenTripPlanner, but I'm not sure if I can use it in Google Maps.
As my friend's and my location can change, I want to update the navigation path from my current location to his current location. (An Idea I have is to recalculate the path when friend's location changes).
I also want to implement voice navigation to my app. How can I get this?
Any suggestion which will satisfy above requirement will be appreciated.
Please suggest sample code and working functions that can be used.

You can take a look at this blog post I wrote on implementing a navigation Polyline to your Google Maps API V2:
Google Maps API V2 Polyline Navigation
There you will find the needed method to get the navigation instruction from Google Directions API and to paint it on your map.

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).

Set default floor shown - Android Google Maps V2

I'm using Google maps V2 in Android. As you know, nowadays Google lets us see floor plans inside some buildings. I'm displaying my position inside my University in a map, but last one only let me see first floor by default (for example if i'm in the second i have to change it manually). I searched in forums and i checked GMaps V2 documentation, but i didnt find any solution..
Do you know any map option, parameter or something else to set the default floor level?
Regards.

Arrow marker on google maps API for Android

I need to develop an application for Android that uses the Google Maps API.
I the need to use a marker that show me my position and rotation exactly like the one shown in the figure (Link: http://3.bp.blogspot.com/-Sy61Gjk7aKA/Tw2Lo553AiI/AAAAAAAAAVI/oJ7tiGb-lts/s1600/2.jpg).
Is it possible to realize?
I wrote an answer to a similar question: Google Map Heading Marker or Indicator
I haven't tried it in 3D, but there's no reason why it shouldn't work.

Replace a map of a building with Google Maps Android API

Im using the latest Google Map API. What I would like to do is that I have an image of plan of a building. I would like to put this on the correct location and display this image instead of the normal map. It would kinda be like if you zoom in alot on a train station and you get more details.
Is there any way to do this?
There is an example with the official Google Maps for Android API sample code (installation how-to) called GroundOverlayDemoActivity.java.
You could try this and check if it is a starting point for further investigations.
Here is a screenshot of this activity:

Full implementation of Google Maps Directions Service on My Android App

I have searched for hours on the web for an example of implementing the direccions service on my android app.
I am using the google maps android api 2.
Basically I want the directions from the actual position and a marker position selected by the user.
I want to make clear that I donĀ“t want to launch a web browser or the google maps aplication, I want to implement the service on my own app.
Till now I found some examples about drawing the route on tha map, which are ok
http://wptrafficanalyzer.in/blog/gps-and-google-map-in-android-applications-series/
Get driving directions using Google Maps API v2
so I just miss the indications part of the service so y can show on my own listview with arrows (turn to left , to right , etc).
Thanks for reading my question
I'm not sure what you want. In your second link about Google Map API v2, the data for drawing maps comes from maps.googleapis.com .You can see https://developers.google.com/maps/documentation/directions/ for more documentation about that.
The xml returned from maps.googleapis.com include <html_instructions> tag which contains instruction like turn left or turn right. So you just need to parse that xml and use <html_instructions> tag for information you need on your listview.
I hope this helps.

Categories

Resources