Hi, This looks good and easy to implement.
I guess my main concern was based on a long time ago, when I implemented code similar to distanceFrom() both server side and client side before I noticed that the method existed :-) Thanks! - Peter Brodersen On Oct 9, 7:20 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Oct 8, 9:12 pm, Peter Brodersen <[EMAIL PROTECTED]> wrote:> Hi, > > > I would like to know if there is a simple method for calculating a new > > set of coordinates with an existing set plus offset (and direction). > > from this > search:http://groups.google.com/group/Google-Maps-API/browse_frm/thread/3642... > > http://www.movable-type.co.uk/scripts/latlong.html#destPoint > > > > > E.g. I would like to get the coordinate 20 meter east of the current > > location. I would expect to pass a distance (e.g. 20 meters) and a > > bearing - with respect for a spherical Earth. > > > Such a function would be a complement to GLatLng.distanceFrom(). > > > My mission is to fetch data from a database in the proximity of a > > (draggable) marker. I would like to search an area of something like > > 50x50 meter. > > > Even though the distance between two points depend on the latitude I > > only need a simple rectangle. Pretty much just like GMap2.getBounds() > > > "For extra credit" :-) This might be in the same category: > > > I have thought of creating a "zone" around a GPolygon from > > GDirections. The idea is once again to fetch data in the proximity of > > the route. In this case a simple rectangle boundary would not be > > sufficient. My first though was just to crudely create a rectangle > > around each line based on the bearing and start- and end-point. > > > - Peter Brodersen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
