Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
1 answer
44 views

How to minimize queries when recalculating route?

We use Directions API but a single route recalculation can generate up to 2000 queries, it is too expensive, how can it be optimized? We removed route recalculation and lowered the number of queries ...
Bigo Safe's user avatar
0 votes
0 answers
42 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
67 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
52 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
36 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
191 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
202 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
0 votes
1 answer
194 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
143 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
195 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
0 votes
1 answer
316 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
77 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
40 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
95 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
0 votes
1 answer
46 views

main polyline is not being selected on created map

I'm trying to create a simple program where I can display all the available paths from one point to another using google maps and let the user select any one of the path generated. I wrote a code for ...
Anil Parshi's user avatar
1 vote
1 answer
154 views

Recieve IllegalStateException when I try to build GeoApiContext to get polyline for my maps

I am trying to display the distance between two points as a polyline on the google maps in my app. For some reason this line of code keeps giving me the same exception which causes my app to crash at ...
kinghabz 14's user avatar
0 votes
2 answers
218 views

How to return "waypoint_order" in Google Routes API?

I'm developing a system to trace a route using the Google Routes API. https://developers.google.com/maps/documentation/routes/intermed_waypoints I have the origin and destination points and between ...
Daniel Ribeiro's user avatar
1 vote
1 answer
180 views

How to resolve getting an unambiguous error message from Node.js Client for Google Maps Services

I am trying to use the Google Maps Directions API in my Node.js application to get optimized routes between multiple waypoints. I haven't been able to make successful requests and receive responses ...
liryc's user avatar
  • 11
0 votes
0 answers
224 views

getting null pointer exception java.lang.Class java.lang.Object.getClass()

I implemented Direction API in my app it works perfectly on debug build but getting crash on release build I think it is because of proguard rules what rule I want to add in proguard to resolve this ...
Mohanasundar's user avatar
0 votes
0 answers
137 views

How can I get a route given by the Directions API as a full set of LatLng pairs of coordinates?

I want to calculate the minimum distance between a point and a polyline with JavaScript and TurfJS. I can use the pointToLineDistance function for that, as follows: var pt = turf.point([0, 0]); var ...
Mateus Riff's user avatar
-2 votes
1 answer
825 views

Draw a Polyline in a Google Directions Route

So, basically I created a route with Google Maps using Directions. How do i decode this overview_polyline? function calcRoute() { var waypts = [ { location: "Sao José dos campos,SP", ...
rafael rocha's user avatar
1 vote
0 answers
108 views

Unable to show polyline in Google Maps Directions using react-google-maps-api

I am trying to show directions on google map. I am getting correct directions data but direction renderer only showing origin and destination markers but polyline or precisely route is missing between ...
Ahmad Hassan's user avatar
-2 votes
1 answer
68 views

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 ...
IoanaBanu's user avatar
0 votes
1 answer
676 views

Changing Google Maps polyline color only changes a part of the polyline of alternative routes

When a user selects two locations, I'm trying to show one main route and two alternative routes. The main one's in blue and the other two are in gray. It works as expected. I want to change the color ...
Tashila Pathum's user avatar
0 votes
0 answers
399 views

Google Directions API not giving JSON response data

The directions api is not working in my Flutter web app. When I request I get no response JSON data and this runtime error: <error: Bad state: Source maps are not done loading.> at Object....
ihatecoding's user avatar
0 votes
0 answers
139 views

google map direction with multiple colors [duplicate]

I trace route between two points using directions API google map .I want to use one color for the route starting from pickup point to the middle point route , and the other half of route another ...
alice evra's user avatar
0 votes
1 answer
212 views

Google Maps Direction API response not mapping with road

I am trying to call directions API and showing the route on Map, but the route is not perfectly matching the road. Here's how I am getting Directions: suspend fun getGoogleDirections( origin: ...
mohit48's user avatar
  • 802
1 vote
1 answer
1k views

Google Directions API distance calculation from VBA

I used a tutorial to automatically calculate travel distance using Google Directions API, based on addresses I enter in Excel. I succesfully created an API key and I used a tutorial page that showed ...
SanderVeeken's user avatar
2 votes
0 answers
1k views

Load Google Direction Service on Vue

I'm new to Vue and have been having a bit of difficulty setting up DirectionService. I wanted to set up a google direction service to show on my map, I've got the map setup and Autocomplete working, I'...
Silvinecoder's user avatar
-2 votes
1 answer
129 views

Get exception in every input address google map directions problem

I use google map with api places . Fill input origin then destination and set direction between two points. My problem is in every fill input I got this message . Any idea please to resolve this ...
alice evra's user avatar
-1 votes
1 answer
386 views

Flutter - calculate mileage driven using geolocator and google api

I am using the Google Directions API, initially to get the detailed from/to directions, i.e. from let's say Denver to Chicago. What I need to do is get actual road mileage as they are driving. I am ...
AidanW's user avatar
  • 1
-3 votes
2 answers
134 views

Java Google Directions API

I am developing a Java Web application tha reads an Excel with adresses. (students adresses) I need to get the distance from one address to each one different adress in the spreadsheet (how far from ...
Itamar G Jr's user avatar
-3 votes
1 answer
145 views

Google directions API not optimising way points

Steps to reproduce Add this in an iframe with an API Key https://www.google.com/maps/embed/v1/directions?origin=Tyne Tunnel Trade Park, Tyne Tunnel Trading Estate, Unit 3 Narvik Way, North Shields ...
Danny's user avatar
  • 1
0 votes
1 answer
196 views

Why is the polyline not drawn on the map

I am trying to draw a route between two coordinates. The project consists of several fragments, when the fragment with the map is loaded, the route should be drawn immediately by coordinates. fun ...
lian. lun's user avatar
  • 165
0 votes
1 answer
811 views

How to move Google Map marker automatically as driver is moving

I'm trying to figure out how we can track driver position on Google map as he is moving. Here's my code: public class TrackDriverActivity extends AppCompatActivity implements OnMapReadyCallback { ...
anta40's user avatar
  • 6,683
2 votes
0 answers
449 views

How do I get number of toll gates between two points in google direction api flutter?

I want to get number of toll gates coming between two points i.e Source and the destination. I wanted to show the number of toll gates on google map that are coming on the way. How am I supposed to do ...
Usama Bin Tahir's user avatar
0 votes
1 answer
774 views

In Flutter google maps api, when current location is changing on the map, how can I guide the driver to take left or right

I have my app in Flutter and using google map in it, I'm faced to this problem; when my driver going from source to destination my app should notify him to take left or right when arrive in some ...
Zia's user avatar
  • 643
-1 votes
2 answers
3k views

How to use Google Maps directions API in Flutter (is it a good practice to keep calling directions API while current location is changing on the map)

In Flutter I use google_maps_flutter, google_directions_api and flutter_polyline_points packages to have a map with the following functionalities; Drawing routes between current location and ...
Zia's user avatar
  • 643
-2 votes
1 answer
134 views

Google Directions API don't consider depature dates for temporarily closed routes

I want to use the directions API from Google Maps to get a route between two waypoints. For example take these two: Barcelonnette, 04400, France Cime de la Bonette, 04850 Jausiers, France There is a ...
Leon Braun's user avatar
-2 votes
1 answer
132 views

Google maps returning two different routes

I am surprised when I am finding the directions between two locations on google maps(maps.google.co.in) one using LAT, LNG, and the other one using the google suggested name. The routes returned are ...
Shikhar Kant Tiwari's user avatar
0 votes
1 answer
618 views

google maps direction api: python vs javascript

I am facing this weird problem. I've been using the google maps APIs using javascript the whole while and now had to use google maps API using python for some reason. The issue I'm facing is that I ...
Karthik's user avatar
  • 71
0 votes
1 answer
61 views

Google Direction service plotting unexpected route

I have an asset i.e. a truck generating reads (lat, lng) at a specific interval and I am plotting those reads on maps using direction service api But direction service is returning path which is not ...
rahul's user avatar
  • 7,653
0 votes
1 answer
140 views

Google maps api for geo-direction for interactive website

The code is for developing an interactive website for routing directions between given geo coordinates. The javascript, css and html are used for the interactive website creation. Something is missing ...
Rob's user avatar
  • 29
0 votes
0 answers
426 views

Google Direction Requested route too long

We are trying to generate a route into out application. We have source location and destination location. We are using google's direction api to fetch the geocoded_waypoints and plotting it on map. We ...
Parth Dhorda's user avatar
0 votes
1 answer
357 views

Why can't I get an overview polyline from my directions api request [duplicate]

I am trying to plot polylines that include waypoints on my map in Xamarin forms. Now, I'm sending the following request to the Google Directions API https://maps.googleapis.com/maps/api/directions/...
Kudakwashe Mundangepfupfu's user avatar
0 votes
0 answers
35 views

How can I plot polylines/routes on Xamarin Forms maps for a route with more than 3 destination points/ waypoints? [duplicate]

I'm new to using google maps and wanted to use the map to plot routes with waypoints (stopovers/other destinations within the route) on my map in Xamarin Forms. Well, at the moment I have managed to ...
Kudakwashe Mundangepfupfu's user avatar
-1 votes
2 answers
1k views

Basic usage of Google Maps Directions API in client-side JavaScript [duplicate]

In the process of making a Firefox-extension, I'm testing out the Google Maps Directions API. Using the API I would like to make client-side requests to find directions between addresses from the ...
glennib's user avatar
  • 63
2 votes
0 answers
680 views

Excel webservice formula with Google-directions API

I would like to extract data in an Excel file from an XML result of a direction query. I use the ServiceWeb function in Excel with this request: =SERVICEWEB("https://maps.googleapis.com/maps/api/...
ASR's user avatar
  • 21
0 votes
0 answers
344 views

Google Directions API sum of steps duration inconsistent with total leg duration

I'm using the Directions API with 'transit' mode and as a sanity check I compare the total distance and duration of one (there is only one) leg and the sum of its steps. I get that the distances add ...
Edvin444's user avatar
0 votes
1 answer
948 views

directions in google map

I want to show directions in google map (android studio , java) package com.example.travel; import androidx.annotation.NonNull; import androidx.appcompat.app.AlertDialog; import androidx.appcompat....
pljni613's user avatar

1
2 3 4 5
11