Easier method is (thx to gmap3 support
[code]var steps = results.routes[0].legs[0].steps
var a = 0;
var tekst = [];
$.each(steps, function(i, step) {
a = a + step.distance.value;
if (/Entering : Germany/.test(step.instructions)) {
alert (from +x+ to Germany :+a); ... [code]
with that example
Yes, parsing the returned text would seem like a simple way to do it,
but it would be a fragile implementation.
Google can change the format or the wording of the returned text and
your RegEx no longer matches.
Aside from that, it will often be inaccurate because there is no
guarantee that the
So i need that
http://maps.forum.nu/v3/gm_directions.html
but for country not county
i have no idea how its done but maybe someone of you can explain me that
--
You received this message because you are subscribed to the Google Groups
Google Maps JavaScript API v3 group.
To view this discussion
On Nov 29, 3:21 am, Janusz Kobylarz butche...@gmail.com wrote:
So i need thathttp://maps.forum.nu/v3/gm_directions.html
but for country not county
i have no idea how its done but maybe someone of you can explain me that
If you examine the code you'll see that the client gets directions
from
On Nov 29, 5:38 am, Marcelo marcelo...@hotmail.com wrote:
On Nov 29, 3:21 am, Janusz Kobylarz butche...@gmail.com wrote:
So i need thathttp://maps.forum.nu/v3/gm_directions.html
but for country not county
i have no idea how its done but maybe someone of you can explain me that
If you
Hi i need a lenght of route in each country
Similar query, with some pointers
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/d13c5e276bb1f204/2d29d6eab624f7eb
--
You received this message because you are subscribed to the Google Groups
Google Maps JavaScript API v3