I am building an Android application for showing a route from source to destination.
In the app, I am finding an optimal path compared to Google Maps path.
But for driving directions, I want an API which will shows the directions from source to destination turn by turn as shown in attachment.
Since I am creating my own path, I have a bunch of latitudes and longitudes from source to destination.
Is there any way I can use my own data(i.e latitudes and longitudes) and show it in the figure shown below?
You will have to use a non-google map for displaying the turn-by-turn directions, it's expressly forbidden in their TOS.
Related
New to Stackoverflow, did some searching and couldn't find anything that really matched what I'm looking for unless I'm using the wrong keywords. I did find guides on how to plot a route when you know the actual route, but I'm looking to do it from actually walking it, see below:
I'm fairly new to web development and am looking to plot maps of a trail on a website using an embedded Google map or some other free map platform if it's suitable (OSM?) I have an Android phone and I'd like to actually be able to:
(1) walk this route,
(2) take the GPS data somehow &
(3) match it up to a Google map to
(4) post it on my webpage.
That will help visitors know the actual route (which is not available on Google Maps in any detail) and have somewhat of a "guide" of the near-exact trail route. I imagine this can be done, as Runkeeper and other applications do this (with additional data on speed, time, etc.) for tracking your runs. I don't really want any of that additional data as much as I would like to just capture the GPS route itself, and have it in some format that I can then use to make a map out of automatically. Not sure where to start with this, or if it can be done easily. Any information or guidance would be greatly appreciated. I have no experience in Java; very limited Javascript and OK in HTML/CSS. I've never used the Google Maps API either.
Thanks!
You may use API Picker lists to help you on the most common things you may want to do on a map or with location-based data, and this also suggests the API that most suits your needs.
Listed below are the useful APIs to plot a route on a map:
Polylines in the Google Maps Android API
Polylines in the Google Maps SDK for iOS
Polylines in the Google Maps JavaScript API
Directions mode in the Google Maps Embed API
Paths in the Google Static Maps API (a web service)
Links of useful APIs for whatever you want to do on a map can be found in the documentation.
I am new to the Google Maps API for android, and recently encountered a problem with a project I'm making. I'm trying to make a network of polylines that represent walking paths on Google maps, but I was wondering, is it possible to get the typical google directions for navigating those polylines? For example, if you are in a park and there are several paths to get to the parking lot, would google maps be able to tell you the fastest path if the paths are represented by polylines?
We would have all used the google maps app on android, so my question is little relevant to that.
In the gmaps for android app, when I choose a driving route, the route gets displayed on the map with voice and text commands. Suppose I deviate from that path, it recalculates the route and alerts me saying follow the original route.
So my question is, can we do this in the google maps API that is provided for android in our own app? If so what is the best followed approach.
My use case goes like this: I have a user who will start his journey to a set of client hotels, and if the transit he takes deviates I simply have to alert him saying he is following a wrong route or he has to follow the modified route. Kind of a security feature.
I have a problem: I need to calculate the routing within a mall that has a plan registered in google maps, but with the direction API can not get the indoor routing. To be precise if I am away from the mall and I want to calculate the route to an internal area, I am guided to the outside of the mall, while I would like my app would calculate a route for the section inside the building . To do this I currently use the Google Maps Android API v2 and the Direction api with json output. Does anyone have any suggestions for me? sorry for my bad English
I have exactly the same problem; compting a route (with mode=walking) between two points that are both inside a mall gives a path that starts, goes and ends out of the building.
The closest similar path found on Google Maps (HTML version, from a browser) is the "bike" one...
Can anyone point me in the direction of a tutorial on how to use GPS (Google maps) to navigate between 2 points in an Android app. I have searched for the last few hours and can only find
tutorials on pinpointing current location.
What I need to do is show current position on map, and then navigation to a set destination on map. So e.g. you are at point A - navigate to point Z
EDIT: Sorry but I should have clarified. What I want to do is just have a button in the app that the user clicks. Once clicked, Google Maps app open and from here Google can do the rest. I don't need the map to be displayed in my app at all.
There is no easy way to do it, you will need to get the direction from a location API such as Google Directions API or Cloudmade to give you all the way points between your 2 points.
you then however have to plot the path and then handle the voice controls yourself
you can however use and Intent to launch the google navigation app in the google maps app and just have google maps do everything but that does not sound like what you want
You can use a VIEW intent using standard google maps parameters. If Google Maps is installed on the device, the user will be able to choose to open it using that or the default browser, etc.
Unfortunately, there's no way to do this directly with a geo: intent at this time. In any of my mapping applications, I've given up bothering with geo: because it's just not mature or standardized enough.
For a great list of url parameters to use(including "directions" mode), check out Everything You Never Wanted to Know About Google Maps' Parameters. I keep it bookmarked.