thanks

looks like we need loadFromWaypoints - below doesnt seem to work -
returns - Failed: 601

// This class is used to obtain driving directions results and display
them on a map and/or a text panel.
            var dirn = new GDirections();
            // load lat/long from db
            dirn.loadFromWaypoints(42.345573, -71.098326,
{ getPolyline: false });


Clicking on the map is not required - just need to take hardcoded lat/
lon and return one on nearest road

http://pc146-56.erg.kcl.ac.uk/LondonAir/htmlpage.htm


On May 28, 3:16 pm, Barry Hunter <[email protected]> wrote:
> Some interesting results here
>
> https://www.google.co.uk/search?q=google%20maps%20api%20find%20neares...
>
> bothhttp://econym.org.uk/gmap/snap.htm
> andhttp://stackoverflow.com/questions/805792/snap-to-nearest-street
> useful
>
> Also the standard disclaimer for this list. v2 of the API is
> depreciated - you should be using v3 instead.
>
>
>
>
>
>
>
> On Mon, May 28, 2012 at 2:45 PM, ERG Web <[email protected]> wrote:
> > Hi,
>
> > I need to implement Street View on our website. We pass in lat/lons
> > from the Database of venues which pass to
> > svClient.getNearestPanoramaLatLng(thisPoint, function
> > (nearestStreetView)
>
> > Unfortanately most dont appear as a street view as no panoramas are
> > available from the  'nearestStreetView'  object, there is also no
> > specified range of how close they can be.
>
> > Test site below shows one that does work.
>
> >http://pc146-56.erg.kcl.ac.uk/london/asp/publicbulletin.asp?lat=51.50...
>
> > So we need a way to find a valid street GLatLng  from the  lat/lon in
> > the browser querystring/database.
>
> > We can then pass this to the getNearestPanoramaLatLng and hopefully
> > find more streetviews.
>
> > Thanks
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Maps API V2" 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 
> > athttp://groups.google.com/group/google-maps-api?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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.

Reply via email to