Hi Evan, The directions service result contains a field "overview_path": http://code.google.com/apis/maps/documentation/javascript/reference.html#DirectionsResult This is pre-simplified to fit in a static map URL.
Cheers Ben On Tue, Oct 11, 2011 at 6:22 AM, Evan Rolfe <evanro...@gmail.com> wrote: > Hi all, is there any way I can reduce the number of points in a > polyline obtained from the Directions Service api? > > I'm coding an application that should draw a route from the user's > address to another address and create a printer friendly version of > the map with the route. In order to get a printer friendly version I'm > creating a static map with the polyline obtained from the route from > directions service. > > The only problem I'm having now is that most routes seem to have > encoded (yes i'm encoding the polyline points to shorten the url) > strings which are longer than 2048 characters so cannot be passed to > google static maps api via a url, this is why i'm trying to reduce the > number of points in the directions route and hence reduce the > accuracy. > > Or if anybody has a better/more elegant solution please let me know! > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to > google-maps-js-api-v3@googlegroups.com. > To unsubscribe from this group, send email to > google-maps-js-api-v3+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.