Reading and Saving Directions returned by DirectionsService ...

文章推薦指數: 80 %
投票人數:10人

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.ConversationsAboutReadingandSavingDirectionsreturnedbyDirectionsService.route1900viewsSkiptofirstunreadmessageHypnotizingChickensunread,Mar17,2011,2:53:21PM3/17/11ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetoGoogleMapsJavaScriptAPIv3Hi Iamtryingtosavearoutemarkedbyauserandextractsomedata fromthemarkedroutesuchasOrigin,destination,waypointsetc. Whilereadingtheobject,itappearsthatsometimesthechildobject insidetheresponsewhichcontainstheorigin,destinationisnamed "Hf"andsometimestheobjectisnamed"Gf".whyisthishappening? whatisasafewayofaccessingthosevalues? Thanks.HypnotizingChickensunread,Mar17,2011,4:34:05PM3/17/11ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetoChrisBroadfoot,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,ChrisBroadfootwrote: ChecktheAPIdocs:http://code.google.com/apis/maps/documentation/javascript/reference.html#DirectionsResult  -- YoureceivedthismessagebecauseyouaresubscribedtotheGoogleGroups"GoogleMapsJavaScriptAPIv3"group. Toposttothisgroup,[email protected]. Tounsubscribefromthisgroup,[email protected]. Formoreoptions,visitthisgroupathttp://groups.google.com/group/google-maps-js-api-v3?hl=en. --http://twitter.com/broady Rosskounread,Mar17,2011,5:01:35PM3/17/11ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetoGoogleMapsJavaScriptAPIv3>HowdoIcapturetheorigin,destination,andthewaypointswhichhavebeen >changedbytheuser? examplediscussion http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/8cedc5ad11d9f034/9920f116510eaf46 Therearemorerecentsimilarthreads,butthisgroups'search' featuredoesn'tseemtofindthem. ChrisBroadfootunread,Mar17,2011,4:22:49PM3/17/11ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetogoogle-map...@googlegroups.com,HypnotizingChickensChecktheAPIdocs:http://code.google.com/apis/maps/documentation/javascript/reference.html#DirectionsResult OnThu,Mar17,2011at5:53PM,HypnotizingChickenswrote: -- YoureceivedthismessagebecauseyouaresubscribedtotheGoogleGroups"GoogleMapsJavaScriptAPIv3"group. Toposttothisgroup,[email protected]. Tounsubscribefromthisgroup,[email protected]. Formoreoptions,visitthisgroupathttp://groups.google.com/group/google-maps-js-api-v3?hl=en. --http://twitter.com/broady JayapalChandranunread,May24,2011,2:50:39PM5/24/11ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetogoogle-map...@googlegroups.comIwastryingforsavingwaypointsandthisshouldbeusefultootheruserswhoaresearchingforthesame.Ihavecreatedsetofscriptstosavethedirectionswaypointsinthedatabasealsocodetofetchthatinformationbackanddisplaythewaypointsinanothermap.Ihaveprovidedhtml,phpandsqlfilesandcompleteexplanationinthislink.http://vikku.info/programming/google-maps-v3/draggable-directions/saving-draggable-directions-saving-waypoints-google-directions-google-maps-v3.htmAlsoyoucancopythesourcecodeofthatpageandyoucaneditaccordingtoyourpreferenceandusethesqlfileforthedatabase.ReplyallReplytoauthorForward0newmessages



請為這篇文章評分?