On Apr 22, 1:19 am, ReDSkuLL <[email protected]> wrote: > How can I configure a walking route? That is not working: > > var dirOpts = {travelMode: "G_TRAVEL_MODE_WALKING"}; > > Now I only get driving routes. Can you help me ?
My working example: http://www.geocodezip.com/example_geo2.asp?walking=yes&addr1=39.289937,-76.576037&addr2=39.290452,-76.56194&geocode=1&geocode=2 If you post a link to your example that doesn't work, we might be able to... -- Larry > Thx ! > > On 20 abr, 16:46, "[email protected]" <[email protected]> wrote: > > > On Apr 20, 7:26 am, ReDSkuLL <[email protected]> > > wrote: > > > > 1)I have a X number of points loaded from database. > > > What is X? > > > > 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) > > > For straight line distance (assuming Gpoint1 and Gpoint2 are GLatLng > > objects): > > var distance = Gpoint1.distanceFrom(Gpoint2); > > > Getting the walking distance is more complicated and the results are > > returned asynchronously (there is a quota and a "speed limit"). > > > -- Larry > > > > 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.- 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 [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 -~----------~----~----~----~------~----~------~--~---
