Example encoded polylines

Here are a few examples to illustrate the basic use of encoded polylines.

Here are a few examples to illustrate how encoding affects the performance of a polyline. All four examples display the same line with about 9700 points from LA to NY obtained from a Google Map directions search. Using most browsers, you can also turn SVG on or off in the first two examples. (SVG, or Scalable Vector Graphics, is a file type for storing images. Many browsers display polylines using SVG by default, with the notable exception of Internet Explorer. SVG is very efficient and will also improve the performance of polylines, encoded or not.) Of course, in Internet Explorer, you're stuck with VML.