OK, thanks for clarification. Probalby I should clarify my use case too. 
In contrary to your application I'm sitting at the consumer side. I 
don't want to produce an encoded line string, I just want to draw the 
polyline resulting from a direction query. This works fine, if I ignore 
the endoded levels. To not miss something, I wanted to acknowledge the 
encoded level now. So this is the state:

a) Querying for routes - OK
b) Decoding returned polyline and levels - OK
c) Transform polyline geocodes to picture coordinates and drawing the 
line - OK
d) Question: How to interpret the level for each point?

For this I had a look onto the reference, but I didn't get the answer 
for "What to do with the point _and_ the level?" for a given zoom.

Thanks in advance.


Maps.Huge.Info (Google Maps API Guru) schrieb:
> You'll have to ignore what the official reference does with the
> encoded levels. In order to use the encoded levels part of encoded
> polylines, you need to use a line simplification algorithm that takes
> into account the ever decreasing size of the line as the zoom moves
> out. Marcelo Montagna and myself wrote this one:
>
> http://www.usnaviguide.com/google-encode.htm
>
> It uses a Douglas-Peucker algorithm to determine the encoded levels
> string and also double escapes all the backslashes, something you'll
> need to do if you plan on using the results.
>
> -John Coryat
>
> http://maps.huge.info
>
> http://www.usnaviguide.com
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to