Questions tagged [directions]

Directions refers to point-to-point steps returned from a map API or application.

References

455 questions
-2
votes
1 answer

Getting a list of all the countries you have travelled through from a google.maps.DirectionsResult object

I'd like to return all the countries from a google.maps.DirectionsResult object after routing from A to B. The response does not include information about this directly, but in the instructions it sometimes says Entering Germany as an example. Now…
Flov
  • 1,527
  • 16
  • 25
-2
votes
1 answer

Is using google map directions url free for commercial use?

A url for example https://www.google.com/maps/dir/?api=1&travelmode=driving&origin=37.785310,-122.406096&destination=37.179518,-120.467905&waypoints=37.185310,-122.106096%7C37.279518,-121.867905%7C37.279518,-121.067905 this is opened from ios app…
-2
votes
1 answer

Google Directions API - different results for same request but with reordered parameters

I am generating the 3 following Google Directions API url with the Java Client: Result -> duration: 11:40 & durationInTraffic: 12:08 ->…
-2
votes
1 answer

Is it possible in mapbox directions api to avoid a certain point?

I need the app to generate a route that avoids a specific point/points. Is it possible? private void getRoute(Point origin, final Point destination) { NavigationRoute.builder(this) .accessToken(Mapbox.getAccessToken()) …
-2
votes
1 answer

How to find Google Map API Shortest route as Shown in Google map Route

I am getting trouble while getting the Shortest route . The Problem is that there is difference between the distance shown in google map and shortest routes get by the google.maps.DirectionsService(); I am also getting alternative roues but that…
-2
votes
1 answer

Travel time in Google Sheets using Google Directions API

For these inputs: Origin Destination Arrival Time I want two Google Sheets formulas that result in showing: the distance in miles travel times (driving, with traffic). It'd be simple formulas that reference cells in the sheet that goes…
-2
votes
1 answer

What are the best algorithms to compute an itinerary for a public transport app?

I am creating an app for a public transports app, and I would need to compute itineraries. However, I am not sure about what algorithm to use? A classic pathfinding algorithm like Dijkstra's or A*? The fact that I have to handle both basic…
Blax
  • 500
  • 3
  • 7
  • 18
-2
votes
1 answer

Google Directions API - Route to a wider area

I think it might be impossible, but I wanted to check with you guys. The Google Directions API. Is it possible to calculate the route to a larger area, rather than pin-pointing to a Lat and Long? E.g. Imagine a huge national park.. there are many…
-2
votes
1 answer

Theres no route drawn between the two markers

I am getting all the result in the console but the route is not getting drawn between the two markers.Should i import any module for the directions? Should i place the directions outside autocomplete? app.component.ts i have omitted the autocomplete…
-2
votes
2 answers

Retrieving the value of from String JSON data from GoogleMapsAPI

I have a jSON response from google directions API in the form of a string. How do I fetch the "maneuver" object from this? I want to place it inside another JSON array which I will later turn into a string. Here is my json:…
-2
votes
1 answer

Changing SELECT to INPUT field

I've got this code snippet for a route calculation with Google Maps.
Standort: