driving-directions

Google Maps API [Directions API] Waypoints limitation?

喜欢而已 提交于 2019-11-29 19:49:16
问题 Documentation says that waypoints limit is 8 points. But I have to draw a line with more than 8 waypoints. How to do that? 回答1: Try sending multiple requests. 回答2: The Google Maps Api V3 says: MAX_WAYPOINTS_EXCEEDED indicates that too many DirectionsWaypoints were provided in the DirectionsRequest. The maximum allowed waypoints is 8, plus the origin, and destination. Maps API Premier customers are allowed 23 waypoints, plus the origin, and destination. You can go for API Premier but i guess

Clickable Driving Direction on Google Maps v3

假装没事ソ 提交于 2019-11-29 16:48:49
I'm making a google maps project and need to create a route clicking on it. My project has 2 points that has a predefined lat and lng, and I want to draw by myself the start and the end of the point A and B and don't lose it functionality. I made another project that you can click to draw the route but it don't have markers, and is not draggabble, this is my actual project with the full code I will post here a short code only with my directions. I want that my first click to the point A and the second my point B, and them the possibility to drag them, like the project linked function goma() {

Google Maps Api Directions

家住魔仙堡 提交于 2019-11-29 16:29:44
问题 Can i mark two points on the google maps in my application and then calculate the direction on the map as well as turn by turn navigation ? 回答1: No the Map Activity doesn't provide such a feature. You have to request it via the Google Maps Web API. 回答2: I am create an application which are used to get the driving direction between two points in the map Step be step step1 First create a class MyOverlay.java which are used to draw a path import android.graphics.Bitmap; import android.graphics

Android: DrivingDirections removed since API 1.0 - how to do it in 1.5/1.6?

可紊 提交于 2019-11-29 08:48:57
It seems that DrivingDirections have been removed since Android API 1.0 What's the way now to display a map with two points (one of them might be the current location, but can also be any other location) and the direction from one to another in Android 1.6? I suspect the answer is to sign up for a multi-million-dollar license from TeleNav or somebody. The reason the API was pulled was because Google itself has limitations on what it can do with driving directions (e.g., cannot do real-time turn-by-turn stuff), since Google licenses this data from TeleNav or other firms. Google, in turn, cannot

Snap to nearest street

萝らか妹 提交于 2019-11-29 04:53:35
You guys have been helping out solving some of my problems with a Google Map lately, and thank you for that. I am almost done with this - only one problem is left. When I place the first marker on the map, it snaps to the nearest street (which is fine!) but when I drag the first marker to another place, directions suddenly mess up. And the markers get mixes. You can see an example on http://dev.korebogen.dk/gmap/ I need to make it possible to move the first marker (still snapping) and when I place the second marker, the directions first load. But in order to make the first marker snap again, I

Calculate driving directions using PHP?

狂风中的少年 提交于 2019-11-28 13:03:53
For my application I need a server to calculate driving directions. The Google Maps API was designed for clientside use only, with a Javascript and Flash API. Is there any way I can run their API's server-side? As I know it this isn't official and google doesn't support it but it works: $url = str_replace(' ', '%20', "http://maps.google.com/maps/nav?client=yourclient&output=json&q=from: ".$lat1.",".$lon1." to: ".$lat2.",".$lon2); $result = file_get_contents($url); $data = json_decode(utf8_encode($result), true); And you'll have directions in $data array. 来源: https://stackoverflow.com/questions

Android: DrivingDirections removed since API 1.0 - how to do it in 1.5/1.6?

怎甘沉沦 提交于 2019-11-28 02:09:59
问题 It seems that DrivingDirections have been removed since Android API 1.0 What's the way now to display a map with two points (one of them might be the current location, but can also be any other location) and the direction from one to another in Android 1.6? 回答1: I suspect the answer is to sign up for a multi-million-dollar license from TeleNav or somebody. The reason the API was pulled was because Google itself has limitations on what it can do with driving directions (e.g., cannot do real

How to get Google Maps Public Transit Directions by HTTP server-side request

試著忘記壹切 提交于 2019-11-27 20:51:31
I use such urls like: http://maps.google.com/?saddr=546%206th%20Avenue,%20New%20York,%20NY%2010011%20(Sixth%20Avenue,%20New%20York)&daddr=W%20103rd%20St,%20New%20York,%20NY%20&dirflg=r But it returns full html page. Does anybody know how to get such info in json or xml or any parsable format? I need public transit. You just add &output=json to the end of the url. I'd like to extend Mathias's answer a little bit. There's no official Google Transit API at the momemnt. Transits are provided by agencies, and most of Transits are not public. So, Google is not allowed to open them as API. You may

Google map driving direction source code for their example?

空扰寡人 提交于 2019-11-27 11:15:46
Google gave an example http://googlemapsapi.blogspot.com/2007/05/driving-directions-support-added-to.html Is the source code available somewhere or a tutorial on that precise example ? Daniel Vassallo Here's a very basic example using the v3 API : <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>Google Maps API v3 Directions Example</title> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> </head> <body style="font-family: Arial; font-size: 12px;"> <div style="width: 600px;"> <div id="map"

Calculate driving directions using PHP?

久未见 提交于 2019-11-27 07:35:02
问题 For my application I need a server to calculate driving directions. The Google Maps API was designed for clientside use only, with a Javascript and Flash API. Is there any way I can run their API's server-side? 回答1: As I know it this isn't official and google doesn't support it but it works: $url = str_replace(' ', '%20', "http://maps.google.com/maps/nav?client=yourclient&output=json&q=from: ".$lat1.",".$lon1." to: ".$lat2.",".$lon2); $result = file_get_contents($url); $data = json_decode