Example #1
1
func (c *command) String() string {
	commands := map[uint]string{
		MoveTo:    "MoveTo",
		LineTo:    "LineTo",
		ClosePath: "ClosePath",
	}
	return util.Sprintf("%s(%+v)", commands[c.cid], c.params)
}
Example #2
1
func (o *Node) String() string {
	return util.Sprintf("%+v", o)
}
Example #3
1
func (o *Way) String() string {
	return util.Sprintf("%+v", o)
}
Example #4
1
func (o *Relation) String() string {
	return util.Sprintf("%+v", o)
}
Example #5
1
func (c Coordinate) String() string {
	return util.Sprintf("[%.6f, %.6f]", c.Lat, c.Lon)
}