Google Maps API - Ignore Streets in Path Planning - android

Is it possible to ignore specific streets in the path planning process of the google maps api? I want to build an application where specific streets can be marked as barriers and furthermore an alternative route should be offered.
If not, can someone suggest an alternative to the google maps api where it's possible (for android development)?

You probably want to use the directions api and set way points in a way to avoid certain streets.

Related

Is Google Directions API route recommendation updating according to real-time traffic?

I'm building a route recommendation app in Android Studio where the user can see the best route between two destinations on the map. I am using Google Maps APIs for that and I know that it's using Dijkstra's algorithm to determine the route. But I wonder if the API can update the route according to real-time traffic, I didn't find any information about that.
Google Maps is updated constantly – literally, every second of every day!
refer this page

Plotting a GPS trail route on a Google map, embedding to site

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.

google earth like UI android

I want to use google earth on Android App, because the motion is really smooth and the attractiveness of the UI. Is there any framework or controls or APIs available for integrating google earth like UI in android apps.
I want to display a particular location
I want to zoom in/out to locations
I want to add/display markers from a particular zoom level onwards.
Hope I described my problem well. If it is not clear I will explain more.
Please give me answer.
While there isn't anything quite like Google Earth (mostly because Google doesn't offer Earth for Android), the Maps API offers the same functionality you're looking for. From what I remember of the last time I compared Maps to Earth, the only reason you'd pick Earth over Maps is if you wanted a 3-D spherical projection of the Earth at the lowest zoom levels.
Using the Google Maps API is fairly simple. Follow these steps.
Sign up for an API key.
Use your SDK Manager to download the Google APIs.
???
Profit!

Caching maps within an android app

I am looking to create an app where users can download a map to their phone before they go to a specific place (in case there is no 3G signal there) and then use GPS to take specific routes that will have been marked on the maps.
I have noticed GoogleMaps 5 has just been released that enables caching.
Is this something I would be able to use or can you not incorporate google maps 5 into another app.
I am very new to Android and am not quite sure what can and can't be done as yet so 'm sorry if
this is a really silly question?
Thanks for any help!
Bex
Is this something I would be able to use or can you not incorporate google maps 5 into another app.
Google Maps (the app) does not use the same Google Maps (the SDK add-on) that the rest of us use. Hence, right now, offline caching is not available to us.
You might consider looking at OpenStreetMap, which has some Android integration and supports offline maps.

Using Google Map Data API on the Android platform

I was checking out the Google Maps Data API and I was wondering if I can follow their Java Development guide to use it on the Android platform? I want to display routes that I have created on Google Maps on the phone.
Ideally this would be through a MapView but if I need to do it a different way I could.
Thanks,
Rob
EDIT: I feel that my question is probably a little too open ended. I don't completely understand how the Google Data API works with Google Maps. Hopefully someone can point me in the right direction but if anyone thinks that this is a bad question let me know so I can delete it.
Yes, you can, several android apps use the Maps Data API (My Tracks, for instance). However, you'll need to parse the KML returned from the maps data and then write code to add it to MapView manually.

Categories

Resources