Questions tagged [map-directions]

151 questions
0
votes
1 answer

Google Maps Directions in XML public transit

I have a google maps directions link shown in XML: http://maps.googleapis.com/maps/api/directions/xml?origin=111%20Davisville%20Avenue,Toronto,ON&destination=469%20King%20Street%20West,%20Toronto,%20ON&sensor=false&dirflg=r Even though it has the…
C0D3
  • 6,440
  • 8
  • 43
  • 67
0
votes
0 answers

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 function get_route_segment() extracts the list of main…
0
votes
1 answer

MapViewDirections only shows one route. Should show alternative routes as well

Using MapViewDirections, I get a polyline as driving directions and a length of how far it is. But what if I want to go there using another route? I dont get any grey polylines with alternative directions. How to get those alternative route…
Rasmus
  • 45
  • 5
0
votes
1 answer

Iterate up, down, left and right through matrix

I have the following python code: exploreIsland(grid, row-1, col, m, n) exploreIsland(grid, row+1, col, m, n) exploreIsland(grid, row, col-1, m, n) exploreIsland(grid, row, col+1, m, n) explaining: row and col stands for the position of the grid of…
Figurinha
  • 101
  • 4
0
votes
0 answers

How to find the map routes which pass by close of my location?

I am creating a Flutter app with Google APIs integration. So I use Google Directions API and I store the results on a Firestore collection. I try to find the best and efficient solution for the below task: Let's say that I have 1000 routes from API…
Helgato
  • 151
  • 5
0
votes
1 answer

Map that updates if player visits places C#

I wanted to know if there was an easier or faster method for what I'm doing. The map is not linear which is why I thought of making the variables all different. And I want the map to show the room only if the player has been there. So maybe they…
0
votes
2 answers

flash google maps api directions failure 400

I created a map with the Google Map API For Flash that shows directions. It creates a line between the 2 addresses and gives turnbyturn directions. This is working perfectly in Flash test mode locally but once i put it online The map still works but…
AHOYAHOY
  • 1,856
  • 4
  • 24
  • 34
0
votes
1 answer

How can I get Longitude and latitude of Address Enter in Input field in react native

I am showing google map Between two coordinate one is origin and other is Destination I want to convert input value into Longitude and latitude. Currently I set static values but I need to get longitude and latitude of values that Inter in input…
0
votes
1 answer

Directions API Crashes the Application on Smartphone and BlueStacks but Not on Android Studio Emulator

I am using Java client library for Google Maps API Web Services to draw routes between two points. it works fine on Android Studio's Emulator but crashes on Blue Stack and my Smartphone. I have created Maps Activity from project Templates, only…
0
votes
0 answers

React Native Maps Directions: Cannot read property 'map' of undefined

When I take out the origin property of the Directions component, it runs with no errors but doesn't show the direction. When I put it, for obvious reasons, I get this error. return (
0
votes
2 answers

How to create restricted Api Key to use directions api?

i'm creating an app that's draw routes between users using only firestore to update users location. the problem is to use direction api i need Restricted key using (server IP addresses) what should i do ? i don't have server i'm using only…
0
votes
1 answer

Are Google Maps API limits applied to key or to cloud project?

Google Maps API (Directions API) has limit of 50 queries per second (QPS): https://developers.google.com/maps/faq#usage_apis However, I need more than just 50 as my web app serves lots of users and 50 QPS is totally not enough, I get failure…
0
votes
2 answers

Problem with CORS. Google directions API GET request | vue.js

I currently work on vue.js project. The app goal is to check distance between 2 localisations, then show route on the map and calculate cost of transport which is based on the distance. I use google directions api, axios for get request. Problem is…
lysy.vlc
  • 79
  • 1
  • 10
0
votes
0 answers

Angular google maps - View directions link is taking time to update origin & destination

I have the below code to capture the origin and destination on click of view directions button. The problem is on click of view directions button, the href URL loads first before the onclick event completes its execution. How to load the href URL…
Nancy
  • 911
  • 7
  • 26
  • 54
0
votes
1 answer

Can't get plain text google maps api html_instructions in php

I'm trying my best to get plain text from google maps directions api where it says html_instructions in json. everything is encoded in html and i want to output plain text. here is what I'm getting image 1 this is what i want : image 2 I tried ay…
Zabi
  • 23
  • 9