Friday, July 16, 2010

Re: Multiple destinations - Price/distance calculator

On Jul 16, 8:09 am, Mike <mica...@googlemail.com> 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, "geocode...@gmail.com" <geocode...@gmail.com>
> wrote:
>
>
>
> > On Jul 16, 7:45 am, Mike <mica...@googlemail.com> 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, "geocode...@gmail.com" <geocode...@gmail.com>
> > > wrote:
>
> > > > On Jul 16, 3:10 am, Mike <mica...@googlemail.com> 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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate