Thanks again for the reply. Is the rest of the code correct then?
Currently, it doesn't work at all and I am struggling to see why.

How would you go about calling the geocoder and GDirections at the
points you specified. As I said earlier, JS isn't my first language
and I really struggle with it.

Thanks again in advance.

On Jul 16, 5:54 pm, "[email protected]" <[email protected]>
wrote:
> On Jul 16, 8:09 am, Mike <[email protected]> wrote:
>
> > Dammit. Sorry. Wrong one again. Here's the correct one.
>
> >  http://www.micanio.co.uk/fare_calc3_via.html
>
> Rather than cascading the geocoder calls, I would suggest calling the
> geocoder when the "address" is selected.  When the "quote" button is
> pressed, call the GDirections service depending on which addresses
> have been geocoded (if the via point hasn't been geocoded, don't
> include it).
>
> Actually, I would really suggest pre-geocoding the destinations and
> only using coordinates or addresses that work.  Only use the geocoder
> to validate addresses that are entered by the user (which your form
> currently doesn't look like it allows).
>
>   -- Larry
>
>
>
> > On Jul 16, 3:59 pm, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Jul 16, 7:45 am, Mike <[email protected]> wrote:
>
> > > > Thanks for looking. I've uploaded the correct file now.
>
> > > Are you sure? I don't see any way to enter a waypoint.  Although now I
> > > do get a javascrirpt error when the page calculates the route (there
> > > doesn't seem to be an address3 form).
>
> > >   -- Larry
>
> > > > Thanks
>
> > > > On Jul 16, 2:23 pm, "[email protected]" <[email protected]>
> > > > wrote:
>
> > > > > On Jul 16, 3:10 am, Mike <[email protected]> wrote:
>
> > > > > > Thanks for the reply. I'm sure it is possible to do what you say.
> > > > > > However, I'm no JS expert and it's been a battle to get this far. 
> > > > > > Any
> > > > > > pointers or nudges in the right direction would be great.
>
> > > > > > You can see my code here:
>
> > > > > >http://www.micanio.co.uk/fare_calc3.html
>
> > > > > That map only has start and destination as far as I can see.  Where is
> > > > > the map that you tried to add a waypoint?
>
> > > > > > This is the final part before it goes live so it is quite urgent.
>
> > > > >http://www.catb.org/%7Eesr/faqs/smart-questions.html#urgent
>
> > > > >   -- Larry
>
> > > > > > Thanks in advance.- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to