Reading and Saving Directions returned by DirectionsService ...
文章推薦指數: 80 %
to Google Maps JavaScript API v3. Hi I am trying to save a route marked by a user and extract some data from the marked route such as Origin, destination, ...
Groups[deprecated]GoogleMapsJavaScriptAPIv3.Pleaseusethelatestpost.ConversationsAboutReadingandSavingDirectionsreturnedbyDirectionsService.route1900viewsSkiptofirstunreadmessageHypnotizingChickensunread,Mar17,2011,2:53:21PM3/17/11ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetoGoogleMapsJavaScriptAPIv3Hi
Iamtryingtosavearoutemarkedbyauserandextractsomedata
fromthemarkedroutesuchasOrigin,destination,waypointsetc.
Whilereadingtheobject,itappearsthatsometimesthechildobject
insidetheresponsewhichcontainstheorigin,destinationisnamed
"Hf"andsometimestheobjectisnamed"Gf".whyisthishappening?
whatisasafewayofaccessingthosevalues?
Thanks.HypnotizingChickensunread,Mar17,2011,4:34:05PM3/17/11ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetoChrisBroadfoot,google-map...@googlegroups.comLetmerephrasemyquestion-Iamtryingtocapturetheorigin,destinationand2waypointsmarkedinaformusingthe draggabledirectionsmapwhichisbasedonthesamplecodegivenhere:http://code.google.com/apis/maps/documentation/javascript/examples/directions-draggable.html
HowdoIcapturetheorigin,destination,andthewaypointswhichhavebeenchangedbytheuser?Rightnow,Iamparsingthesavingthedirectionsresultasahiddenfieldandparsingit,butfindtheobjecttobeinconsistent.
OnThu,Mar17,2011at1:52PM,ChrisBroadfoot
延伸文章資訊
- 1Reading and Saving Directions returned by DirectionsService ...
to Google Maps JavaScript API v3. Hi I am trying to save a route marked by a user and extract som...
- 2Directions Service | Maps JavaScript API - Google Developers
This object communicates with the Google Maps API Directions Service which receives direction req...
- 3Google Maps API Directions Service Example - SoftAuthor
The Directions Service is a client-side JavaScript libraray that lets us to get directions data b...
- 4Google Maps API directionsService.route different from ...
The Google Maps Javascript API v3 directions service won't do that for you (at least at present)....
- 5使用Google Map API(Directions Service)獲取及顯示最佳路徑
之前文章有介紹過如何使用Google Map API(Geocoding API, Distance Matrix Service)去取得點位縣市鄉鎮資訊或是兩點之間的距離及移動所需時間資訊(有...