Re: Multiple destinations - Price/distance calculator
On Jul 20, 3:05 am, Mike <mica...@googlemail.com> 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.
> 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, "geocode...@gmail.com" <geocode...@gmail.com>
> wrote:
>
> > 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