So far, I came up with:
var g1 = new YGeoPoint(52.426520,4.839082);
var g2 = new YGeoPoint(52.354187,4.929902);
var d = g1.distance(g2);
I just want the var d to be outputted, but don't know how. It keeps telling me
it is an object.....
--- In yws-maps-ajax@yahoogroups.com, "connectcasenl" <cees@...> wrote:
>
> Hi there,
>
> anyone know if it's possible to create a distance calculator with the Ajax
API? Been searching the Developer Network site all night long, but I could only
find that it's possible with the AS3 API.
>
> Regarding the Ajax API, there is a YMapDistance-constructor, but that seems to
be some sort of convertor....
>
> What I want is basically: enter two adresses, calculate distance and output
that in a div. Preferrably no loading of any (graphical) maps.....
>
> Thanks for any points into the right directioN!
>