I want to use only place autocomplete for lat/long data.
But cannot understand this paragraph from "license agreement" disallow me to use it?
present or alert an end user to individual maneuvers of a route in any
way that is synchronized with the end-user’s sensor-based position
along the route, (e.g. “real-time” navigation);
I want to build the route with help of Bing Maps (Autocomplete API for addressees) and then trigger the GPS navigation without any use of Bing Maps's data.
That line is simply saying that you're not allowed to use their data to create your own turn-by-turn navigation app. It doesn't sound like you're doing that, so it's probably fine.
Using Bing maps controls or services to build an application that provides turn-by-turn guidance directly to the user in that application is prohibited by the terms of use.
If you are using Bing maps services to determine the lat/long of a destination and then handing that position off to some other application (like the built-in maps app) to do the turn-by-turn guidance, that would be permitted.
Related
I want to open the default google maps application from my application, let the user pin a location, and get the pinned location details back to my application.
somekind of startActivityForResult(), where the result data would be a latitude,longitude or anything like that.
is there a way to do this? is it possible?
PS: I already know/worked with the maps sdk, but in this application this is the only use case with maps, that's why i can't afford using the sdk.
No, you can't do that with the Google Maps app. Here's a PlacePicker library that accomplishes this task though:
https://github.com/suchoX/PlacePicker
I developed an app which uses Google Map. I already wrote for getDirections using google map direction API. I am getting LatLng List. But I don't know how can I implement turn by turn navigation like in navigation apps or Uber into my app using Google Map. Or what can I use for this in my app? I am setting marker and polyLine but can't use turn by turn navigation
In section 10.4.c of the google maps API privacy terms here.
It states
No navigation. You will not use the Service or Content for or in connection with (a) real-time navigation or route guidance; or (b)
automatic or autonomous vehicle control.
So no, it is not possible to create a turn-by-turn navigation application on android by using Google Maps API without breaching their privacy policy. Your best bet would be to forward the long & lat to the devices native maps app or waze your choice!
You can use Here maps for turn-by-turn navigation.
In Here-Maps SDK, NavigationManager class is responsible for providing voice and visual instructions to the user while driving or walking. An instance of NavigationManager can be retrieved using NavigationManager.getInstance(). It should be associated with a map with setMap(Map) method before navigation is started.
Navigation can be started in three different modes:
Simulation Mode - simulate(Route, long) - This mode does not require any GPS data from the device as the position is simulated along the given route.
Navigation Mode - startNavigation(Route) - This mode takes the calculated route and matches the position against the route. Before using this mode, PositioningManager is required to be running with GPS data.
Tracking Mode - startTracking() - This mode does not require a calculated route as it only tracks and shows the current position on the map.
You can find examples that demonstrate the navigation feature in Turn by Turn Navigation and Advanced Navigation projects at https://github.com/heremaps/.
source : https://developer.here.com/documentation/android-premium/dev_guide/topics/map-guidance.html
how to parse and store distance and time to reach in SQlite Database in Android when open Google Map from using intent showing route and distance Automatically by navigating between two points?.
I don't think you can parse data directly from the Google Maps app. There are a couple of ways to go about this though. I would look at implementing some of the Google Maps API in your app to run before starting the intent. Or setup navigation in your app between the two points directly.
If you only want distances and travel times, then I would look at the Distance Matrix API. If you want inbuilt directions have a look at the other maps API like the full Android Maps API.
I am Developing Android application in which i need to show available destinations to the user in Google Maps and provide route optimization with near and far destinations.
And Also set priorities to each and every destination LIKE eg:(1,5,3,2,4,6,7) etc.
Please can anyone help me on this topic.
I think this tutorial can help you with your problem. It uses a Google Maps JavaScript Direction Service. What you need is to create a structure request object and pass it into to a Direction Service Object and wait for Google's servers to respond via your callback function. After checking that the directions are "OK", you can iterate through the results object or pass it to a DirectionsRenderer Object provided by the Google API.
This tutorial gives you a sample code that will serve as a guide for you. For more information, you can also check this related SO question:
Using Google Maps 3 API to get multiple routes on a Map
Google maps API - adding multiple destinations
Google Navigation shows the traffic layer only for a given route. With GoogleMap.setTrafficEnabled(true) I'll get the traffic information for the whole map.
I know how to draw polylines for a route from Google Directions, but how can I turn on the traffic layer only for that route?
Not possible as of API v2 version 3.1.36. You may want to post a feature request on gmaps-api-issues.
The difference between these two values (duration and a duration in traffic) indicates how delayed your customer is going to be on their way to or from their location.
Reference: Access Google's Traffic Data through a Web Service
Discussion: http://searchengineland.com/pull-google-maps-traffic-data-into-adwords-with-this-script-library-248934