Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
How can I get routes in direction to php-script?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
andrey777mail@gmail.com  
View profile  
 More options Jun 29 2008, 9:59 am
From: "andrey777m...@gmail.com" <andrey777m...@gmail.com>
Date: Sun, 29 Jun 2008 06:59:43 -0700 (PDT)
Local: Sun, Jun 29 2008 9:59 am
Subject: How can I get routes in direction to php-script?
I have start-point and finish-point. I won get route-coordinates of
direction to my php-script.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
marcelo  
View profile  
 More options Jun 29 2008, 10:40 am
From: marcelo <marcelo...@hotmail.com>
Date: Sun, 29 Jun 2008 07:40:27 -0700 (PDT)
Local: Sun, Jun 29 2008 10:40 am
Subject: Re: How can I get routes in direction to php-script?
You can't. Javascript only.

--
Marcelo - http://maps.forum.nu
--


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
andrey777mail@gmail.com  
View profile  
 More options Jun 29 2008, 1:40 pm
From: "andrey777m...@gmail.com" <andrey777m...@gmail.com>
Date: Sun, 29 Jun 2008 10:40:18 -0700 (PDT)
Local: Sun, Jun 29 2008 1:40 pm
Subject: Re: How can I get routes in direction to php-script?

marcelo:

> You can't. Javascript only.

Because Javascript can, then php can theoreticaly. Javascript gets
encoded polygon with direction. Example of encoded polygon:
"s{upIoeudFAqI" and draws it on the map. I can't find source of
javascript function  fromEncoded(polylines, fill?, color?, opacity?,
outline?)

In documentation:
"<b>
class GPolygon

This is very similar to a GPolyline, except that you can additionally
specify a fill color and opacity.
Constructor
Constructor     Description
GPolygon(latlngs, strokeColor?, strokeWeight?, strokeOpacity?,
fillColor?, fillOpacity?, opts?)        Creates a polygon from an array of
vertices. The colors are given as a string that contains the color in
hexadecimal numeric HTML style, i.e. #RRGGBB. The weight is the width
of the line in pixels. The opacities is given as a number between 0
and 1. The line will be antialiased and semitransparent. (Since 2.69)
Factory Methods
Factory Methods         Return Value    Description
fromEncoded(polylines, fill?, color?, opacity?, outline?)       GPolygon
Creates a polygon (consisting of a number of polylines) from encoded
strings of aggregated coordinates and levels. polylines contains an
associative array of constituent polylines, encoded in the same format
as described in the GPolyline.fromEncoded documentation. fill
specifies whether to fill in the polygon with a certain color. opacity
and outline specifies whether to stroke the polygon with the
polyline's color, weight and opacity. In case multiple values are
specified in polylines, the first polyline's values are taken. (Since
2.78)</b>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rossko  
View profile  
 More options Jun 29 2008, 1:55 pm
From: Rossko <ros...@culzean.clara.co.uk>
Date: Sun, 29 Jun 2008 10:55:32 -0700 (PDT)
Local: Sun, Jun 29 2008 1:55 pm
Subject: Re: How can I get routes in direction to php-script?
Perhaps we've misunderstood your question.   Are you after turn-by-
turn driving directions from one place to another?  Or the direction
bearing from one point to another, like "275 degrees"?

cheers, Ross K


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lance Dyas  
View profile  
 More options Jun 29 2008, 3:37 pm
From: Lance Dyas <lance...@inetnebr.com>
Date: Sun, 29 Jun 2008 14:37:44 -0500
Local: Sun, Jun 29 2008 3:37 pm
Subject: Re: How can I get routes in direction to php-script?
andrey777m...@gmail.com wrote:

> marcelo:

>> You can't. Javascript only.

sort of an "you cant get there from here" response isnt it ;-)

> Because Javascript can, then php can theoreticaly.  

Heh, not necessarily true, PHP runs on the server not in the browser
javascript has access to the resourses of the full api, your php needs a
go between
ie you use javascript to get the directions then use ajax to send the
results to a php page.

The most common circumstance under which people want to read
through the direction in the api is when they want to display them
themselves.
http://econym.googlepages.com/steps.htm
the above shows you the method for getting at the details of the response
first understand the above...

Then the next step is figuring out how to send  the info you want to
your php
AJAX ofcourse is the base answer...  
http://code.google.com/support/bin/answer.py?answer=66848

The above isnt exactly what you need but should get you on your way


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »