Here is another solution.

http://etaxi.lv/?lang=en



2010/7/21 [email protected] <[email protected]>

> On Jul 21, 3:33 am, Mike <[email protected]> wrote:
> > Wow. Thanks very much for that, that's fantastic.
> >
> > It's just about what I was aiming for, however, there is one minor
> > issue. You can't now enter a custom address into the text fields.
> > Previously you could select one of the options from the drop down box
> > or alternatively enter a custom address. Now it only performs the
> > calculation if you use a destination form the drop down boxes.
>
> So fix it...
> I think there is a problem if it can't geocode the preset address,
> and  the was at least one that happened with, so it would be best if
> you fixed that too.  I don't remember which one.
>
>  -- Larry
>
> >
> > Thanks again for taking the time to have a look.
> >
> > On Jul 20, 3:35 pm, "[email protected]" <[email protected]>
> > wrote:
> >
> > > On Jul 20, 4:08 am, "[email protected]" <[email protected]>
> > > wrote:
> >
> > > > On Jul 20, 3:05 am, Mike <[email protected]> wrote:
> >
> > > > > Thanks again for the reply. Is the rest of the code correct then?
> >
> > > > Not necessarily.
> >
> > > > > 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.
> >
> > > > I have a version that I made work (on a different computer than the
> > > > one I am on currently), I will post it when I get a chance.
> >
> > >http://www.geocodezip.com/micanio_co_uk_fare_calc3_viaB.html
> >
> > > Not sure if that is the way you want it to work or not.
> >
> > >   -- Larry
> >
> > > > > 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 -- 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]<google-maps-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api?hl=en.
>
>

-- 
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