Questions tagged [map-directions]
151 questions
4
votes
1 answer
Is there a way to add custom roads (e.g. off-road routes) to google maps and then get directions to use them?
I want to add some custom roads using google maps api (i.e. off-road routes, gravel roads that aren't marked as roads in the map, etc) and then use those roads in conjunction with existing roads to get directions. I know this isn't possible out of…

valentinas
- 4,277
- 1
- 20
- 27
4
votes
1 answer
How to draw route between two points in MapFragment using Google Maps Android API
My target is to complete the following tasks in one single class.
I want to give direction between two pointers (current location & prefixed location in navigation drawer) in Google Android Map API.
Is it possible or do I need Directions API? Can't…

Isaac
- 49
- 1
- 1
- 2
4
votes
1 answer
Can I restrict Google Direction API to iOS apps only?
I've been using Google Directions API for my iOS app, but now I want to restrict the API key to be used by my iOS apps (specified by their bundle IDs) only.
Is there any solution for this? Thanks

hoang Cap
- 704
- 6
- 18
4
votes
1 answer
Snap to Roads Android
I'm writing an Android app and I need the ability to take a lat/long value and find the lat/long value of the nearest road to it. I've read the article at http://econym.org.uk/gmap/snap.htm, and tried to implement this, but I've had to use the…

Edward Hughes
- 171
- 1
- 5
4
votes
3 answers
Describe relative angles between points (like driving directions)
I have a list of points with x, y coordinates. I know how to get the distance between points with sqrt(pow($x2 - $x1, 2) + pow($y2 - $y1, 2)) and the angle between points with atan2(y1 - y2, x1 - x2).
How can I calculate the relative angle between…

aan234g
- 41
- 2
4
votes
2 answers
Check user is following the route or not (iphone)
i am making an navigation based application. In this application i am drawing a route from points selected by the user. I have requirement of recalculating route if user is not following the route.
for Calculating the route i have used Google…

Nirav Gadhiya
- 6,342
- 2
- 37
- 76
4
votes
1 answer
Google maps API - Uncaught ReferenceError: directionsService is not defined
I am trying to use direction on my map used on my site, but there is one error that keeps popping up and I have no idea how to get rid of it!
Uncaught ReferenceError: directionsService is not defined
This is my code used
$(window).load(function ()…

Shaun Brown
- 123
- 2
- 3
- 11
4
votes
2 answers
Google Maps API - Midpoint along route
I've been playing around with the Google Maps/Google directions API. Does anyone have an inkling on how I might be able to find the mid-point along a route, not the geographic midpoint.
Ideally I'd like to find the lat and long values of this…

user1409064
- 41
- 1
- 2
3
votes
1 answer
Struggling to implement google directions api in Android App
I would like to implement google walking/cycle directions into an Android app im creating but I'm struggling to get my head around how to do this. I've recognised that the most accepted way is to query google via http to retrieve a kml file, which…

Ally
- 1,476
- 3
- 19
- 30
3
votes
1 answer
Google maps api Directions User defined Steps
I have a google map service with the stores mapped on it.
I also have directions service (then you define two addresses or more and it shows you a way on this map, see google map api directions). So I waте to show the nearest stores to this way. Of…

DolceVita
- 2,090
- 1
- 23
- 35
3
votes
1 answer
google maps export driving directions to kml file - java geogoogle
Sorry at first for my poor grammar.
I am writing a program in Java using geogoogle (Google Geocoder Java API) http://geo-google.sourceforge.net/
I need from two specific points to get the walking directions between these points and also these info…

maiky
- 3,503
- 7
- 28
- 28
2
votes
1 answer
How do I determine if a user is traveling along a specified route and in which direction?
Assume I have established a navigation route on a service like google maps. How do I determine if a user is traveling along that route and in which direction? Sort of like a GPS device knows if you are following the specified route or not, but also…

izzysdad
- 31
- 2
2
votes
1 answer
Getting names/coordinates of stopovers on transit route via google Maps Api
I am trying to find out the names/coords of stops being made on a transit route via googleMaps js API
I working with the directionsService function in travelMode transit, here’s a example output:
{
"arrival_stop": {},
"arrival_time": {},
…

Jannik Lehmann
- 468
- 5
- 25
2
votes
1 answer
How to load Android Direction API results in external Google Maps app?
I am using Google Directions API to get routes between two locations with Way Points.
Currently what I am doing is getting direction details between two locations using Direction API and showing the result in Google Maps integrated inside my…

Sudheesh Mohan
- 2,560
- 3
- 21
- 38
2
votes
1 answer
Directions API Request Denied Android Client
I am trying to make a request to directions api from android. I have constructed my request url like…

Andromeda
- 230
- 1
- 7
- 22