1)I have a X number of points loaded from database. I need to create markers in order depending the distance from origin (the way to get this can be trought a few intermediate arrays).
The best will be i could take 2 GPoints or 2 Gmarkers and use a funciont like this : Gmap.distance(Gpoint1,Gpoint2) 2) I will not use the visual routes, maybe show the distance in the ginfowindow popup. Thx !! On 20 abr, 16:12, "[email protected]" <[email protected]> wrote: > On Apr 20, 7:06 am, ReDSkuLL <[email protected]> > wrote: > > > Im trying to numerate points accord thedistancefrom the first marker > > in map (for example: number 1 is the nearest to the origin, number 2 > > is the second, ...). > > 1. how many points? GDirections is asynchronous and will take some > time. Are you going to do it and save the result in a database or do > it every time you load the page? > > 2. You have to provide a div to display the directions text for > GDirections to return results forwalkingroutes. > > -- Larry > > > > > On 20 abr, 13:44, Rossko <[email protected]> wrote: > > > > > I have 2 points with X, Y coordenates. I need to calculate the > > > >distance(walking) beetween the 2 points, but not the rute in the > > > > map, only thedistancesuch a number. > > > > What are you going to do with it? Asking because Google provide this > > > kind of data for use in conjection with their maps, not for other > > > purposes. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
