Skip to main content

Questions tagged [google-directions-api]

The Directions API is a service that calculates directions between locations using an HTTP request. It is also available as part of the client-side Maps JavaScript API, or for server-side use with the Java Client, Python Client, Go Client and Node.js Client for Google Maps Services.

google-directions-api
0 votes
1 answer
45 views

Google map directions delay loading the itinerary

I'm using google map intent in my react native application has been almost one year without any problem passing the coordinates in this url allowing the user to open "Google maps" on ...
Ruchaw's user avatar
  • 1
0 votes
0 answers
43 views

API project is not authorized to use this even no ristriction

I have a issue regarding Directions API Response: { "error_message" : "This API project is not authorized to use this API.", "routes" : [], "status" : &...
Gautam chibi's user avatar
-1 votes
1 answer
34 views

Is Travel time considered without the OPTIMIZED field being set to true? [closed]

Our service is wanting a consistent result when selecting a route based on various factors. We simply are looking to understand if there is any order to the resulting routes in the response. ...
landon_p's user avatar
1 vote
1 answer
122 views

Google maps API is returning ZERO_RESULTS for a directions request via API, but works on Google maps

Problematic call in question is: https://maps.googleapis.com/maps/api/directions/json?origin=35.73455050,-95.31531510&destination=29.67404860,-95.54087240&waypoints=29.92853940,-95.29782860|29....
Mario Klisanic's user avatar
-2 votes
1 answer
160 views

Google API directions doesn't work at all with GPT assistant

I'm a low experience user so be patient with me please. I'm trying to create a GPT assistant to help me in my work and I need it to have access to Google Direction API to calculate distance between ...
Mike G. Poli's user avatar
-1 votes
1 answer
436 views

Fetch has been blocked by CORS policy in JavaScript (Google Cloud Platform)

I have encountered a problem regarding a http request to Google Platform API. This is the example https: https://maps.googleapis.com/maps/api/directions/json?key={my api key}&origin=And%C4%9Bl&...
daniel_a123's user avatar
0 votes
1 answer
163 views

How can I smoothen the line in Google Directions API?

I want to have smoother polylines displayed on the map. See the screenshot of sharp polyline. I found that "polylineQuality":"HIGH_QUALITY" is available in Routes Preferred API ...
m.altinisik's user avatar
1 vote
1 answer
117 views

Maps.newDirectionFinder() in Google Sheets Shows Loading Error

I have the following code: function CALCULATE_DRIVING_DISTANCE(origin, destination) { var directions = Maps.newDirectionFinder() .setOrigin(origin) .setDestination(destination) .setMode(...
BGC_MAN's user avatar
  • 11
0 votes
0 answers
169 views

REACT: Google Maps API - Add Address from Places to Waypoint

I have created a map with three inputs for origin, destination and waypoint using Google Maps API with @React-Google-Maps/api. When I type addresses through places API in origin and destination input ...
Orwellian's user avatar
1 vote
1 answer
273 views

Google Directions Api Problem on optimisation

i am using directions api with some waypoints. the thing is that its not optimized, it goes with the order of my array and not with the most efficient order. i dont want the order of my array to take ...
vasilis tertylinis's user avatar
0 votes
0 answers
66 views

How can I achieve a smooth direction update using DirectionsAPI (I'm using Google Maps API for my application)

private void getPlaceDetails(String placeName) { // List<Place.Field> placeFields = Arrays.asList(Place.Field.ID, Place.Field.LAT_LNG); AutocompleteSessionToken token = ...
Carlolong's user avatar
0 votes
0 answers
82 views

google directions api always returning empty route

I'm trying to make use of the directions api to draw route on map. I created the interface below so I can call the getRoutes() Function inside the interface in the mainactivity and access texts from ...
kosi's user avatar
  • 1
0 votes
0 answers
47 views

google directions api returning zero routes

I'm trying to make use of the directions api to draw route on map. I created the interface below so I can call the getRoutes() Function inside the interface in the mainactivity and access texts from ...
Kossy's user avatar
  • 19
0 votes
0 answers
37 views

How can I extract only a part of the road rather than analysing the whole road using GoogleMaps API?

I am using GoogleMaps Directions API to extract the main road one can take from origin to destination as an output. Origin: Stuttgart, Germany Destination: Frankfurt, Germany Output: ['A6'] The ...
Ekagra Gupta's user avatar
0 votes
1 answer
92 views

How do I mention only the major highways as output rather than local roads?

I am using Directions API to get a route segment (list of destinations to reach a particular destination). origin = "New York" destination = "Ohio" output: ['2 Murray Street, New ...
Ekagra Gupta's user avatar

15 30 50 per page
1
2 3 4 5
35