Skip to main content
The 2024 Developer Survey results are live! See the results

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
0 answers
24 views

Issues with Google Maps API Directions Not Returning Transit Data

I am encountering an issue with the Google Maps Directions API when trying to fetch directions using the transit mode. Despite specifying transit mode in the URL, the API often returns data for ...
user3537684's user avatar
0 votes
1 answer
50 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
35 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
135 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
173 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
452 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
167 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
124 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
176 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
278 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
67 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
84 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
38 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

15 30 50 per page
1
2 3 4 5
35