driving-directions

Clickable Driving Direction on Google Maps v3

廉价感情. 提交于 2019-12-29 09:26:07
问题 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

Geographic Data Web Service

江枫思渺然 提交于 2019-12-23 20:10:07
问题 I am thinking about writing a program to check some mileage claims (about 45,000 of them actually) made by Members of the British Parliament recently. The data I have is quite course - the origin and destination of the trips is generally provided only at the Town level. What I am looking to do is basically look at the mileage figures they have submitted, look at the "calculated" mileage obtained from a web service, and then compare / contrast. (I'm thinking of perhaps being interested in

Static route image showing broken (Google Maps Directions API)

喜欢而已 提交于 2019-12-23 05:35:09
问题 I'm attempting to retrieve a static image of a route from Google Maps directions API. // addresses $from_address = "Mobile,AL" $to_address = "Athens,GA" // build static image url $url_route_json = "https://maps.googleapis.com/maps/api/directions/json?origin=$from_address&destination=$to_address&mode=driving&key=$goog_map_dist_api_key"; // replace any spaces in the route address with + signs $url_route_json = str_replace(' ', '+', $url_route_json); // get the json response $resp_json = file

iOS driving directions in iOS6

最后都变了- 提交于 2019-12-23 03:14:53
问题 I have been searching all around about how to integrate driving directions into MKMapView within my application. Is the only way to open the Apple Maps program and go from there, or is their a way of integrating within your own app. If not, I will probably go with google maps as soon as I can get an API key. 回答1: If you mean getting the same views for driving direction (a.k.a. turn-by-turn navigation) as the Apple Maps application, then no... as far as I know, there is no library for that (if

Google Maps - Autocomplete & Directions API - trigger onchange() for dropdown list?

守給你的承諾、 提交于 2019-12-22 10:44:49
问题 I have Google Map and two inputs. Both of them use autocomplete, like this: //first input autocomplete var input1 = (document.getElementById('start')); var autocomplete1 = new google.maps.places.Autocomplete(input1); autocomplete1.bindTo('bounds', map); //second input autocomplete var input2 = (document.getElementById('end')); var autocomplete2 = new google.maps.places.Autocomplete(input2); autocomplete2.bindTo('bounds', map); After I fill both of these inputs I'm displaying the shortest way

Google Maps HTTP API for driving and walking directions

十年热恋 提交于 2019-12-18 13:33:29
问题 Do you know how I can get walking directions from Google by giving two specific coordinates? How can I send simple HTTP GET requests and have the result in a KML file? I don't want to geocode, but get the driving directions as the KML file returned by this method: http://www.gringod.com/2008/02/26/save-google-maps-driving-directions/ 回答1: There is no documented and approved method at the moment to access the Google Maps Directions API via an HTTP request ( update : Google added walking and

Snap to nearest street

女生的网名这么多〃 提交于 2019-12-18 04:20:13
问题 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

Is there a way to show road directions in Google Map API v2? [duplicate]

半世苍凉 提交于 2019-12-17 16:33:14
问题 This question already has answers here : Get driving directions using Google Maps API v2 (3 answers) Closed 8 months ago . I was looking for an answer using Google and here, and the only relevant posts I have found are: Google Maps Android V2 and Direction API Get driving directions using Google Maps API v2 but there is no answer there. So I have already mentioned it but I will say that again. I am looking for a solution for the Google Map API v2 using FragmentActivity and a

Google Maps API Directions Service Displaying Text Directions Repeating

♀尐吖头ヾ 提交于 2019-12-13 23:49:29
问题 I'm using the Google Maps JavaScript API to display routes and text directions: JS: var geocoder; var map; var search_lat; var search_lng; function initMap() { var myLatLng = { lat: 38.5803844, lng: -121.50024189999999 }; map = new google.maps.Map(document.getElementById('map'), { zoom: 16, center: myLatLng, }); geocoder = new google.maps.Geocoder(); document.getElementById('search_button').addEventListener('click', function() { getDirectionsByAddress(geocoder, map); }); var locations = <?php

How to get google driving instruction using google map api on android?

被刻印的时光 ゝ 提交于 2019-12-12 08:18:43
问题 I'm newbie at android programing. I have read many interesting driving direction application. so, I tried to build map and gps based application. I can get and show direction between 2 point , but I don't know how to show textual instruction like http://i.stack.imgur.com/7i7ei.jpg Can somebody help me out? Or give me toturial? Thank for you kindness 回答1: This api gives you an information about the route steps: http://maps.googleapis.com/maps/api/directions/json?origin=&destination=&sensor