Fix rounding during polyline encoding

Casting as int() behaves like math.Floor() (i.e. int(0.8) = 1) 

See Go Playground: http://play.golang.org/p/R4EWjARIVv