Thanks Marcelo. I am using the PHP class described in this discussion - http://groups.google.com/group/google-maps-api/browse_thread/thread/b55751cde7c0981f/95942ba0547103b9?#95942ba0547103b9. The source code for the class is here - http://google-maps-api.googlegroups.com/web/encodepolyline.php.txt
Is there a better class that you know of? I'll also check if the points I'm sending to the function are correct. Regards, Ajay On Dec 17, 12:07 pm, Marcelo <[email protected]> wrote: > I don't think your lines are encoded correctly. > > Try this decoder utility, by Marc McClur, who is the top expert on > encoded > polylines:http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/decode.html > > If you put some of your encoded lines there, you get some values > spanning from India to Jasper National Park, in Canada, in the same > line, and some other crazy values, like latitude -178. > > What are you using to encode the lines? > > -- > Marcelo -http://maps.forum.nu > -- > > On Dec 17, 4:35 am, Ajay Reddy <[email protected]> wrote: > > > > > Hi, > > > I am encoding points on a route and creating a thumbnail image using > > the static maps API. The route generated using this is accurate for > > some but shows just two points for others. I used the decoding > > function > > fromhttp://unitstep.net/blog/2008/08/02/decoding-google-maps-encoded-poly... > > and verified that the points passed are indeed correct. > > I'm not able to figure out why the routes created are not accurate > > everytime. > > Could anybody please help? > > Here's the page where the route thumbnail images are displayed > > -http://www.tripnaksha.com/index.php?option=com_showalltrails&Itemid=44 > > The Jasper skyline trail is marked correctly, while all the other > > images just have a line between two points. -- 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.
