From fba59e91002c124a3c0f6152e6fa304e1251916b Mon Sep 17 00:00:00 2001 From: Marcel Meyer Date: Thu, 28 Jan 2021 12:34:30 +0100 Subject: [PATCH 1/3] Remove redundant parenthesis --- osmpbf/decode_data.go | 4 ++-- relation.go | 2 +- replication/changesets.go | 2 +- replication/interval.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/osmpbf/decode_data.go b/osmpbf/decode_data.go index 01e2cb2..d3063d6 100644 --- a/osmpbf/decode_data.go +++ b/osmpbf/decode_data.go @@ -382,7 +382,7 @@ func (dec *dataDecoder) extractDenseNodes() error { return err } lat += v8 - n.Lat = 1e-9 * float64((latOffset + (granularity * lat))) + n.Lat = 1e-9 * float64(latOffset + (granularity * lat)) // lon v9, err := dec.lons.Sint64() @@ -390,7 +390,7 @@ func (dec *dataDecoder) extractDenseNodes() error { return err } lon += v9 - n.Lon = 1e-9 * float64((lonOffset + (granularity * lon))) + n.Lon = 1e-9 * float64(lonOffset + (granularity * lon)) // tags, could be missing if all nodes are tagless if dec.keyvals != nil { diff --git a/relation.go b/relation.go index 66ccfea..368c34e 100644 --- a/relation.go +++ b/relation.go @@ -19,7 +19,7 @@ func (id RelationID) ObjectID(v int) ObjectID { // FeatureID is a helper returning the feature id for this relation id. func (id RelationID) FeatureID() FeatureID { - return FeatureID((relationMask | id< Date: Thu, 28 Jan 2021 12:34:53 +0100 Subject: [PATCH 2/3] Fix typo --- update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.go b/update.go index 0870ff3..e9cb088 100644 --- a/update.go +++ b/update.go @@ -49,7 +49,7 @@ func (us Updates) UpTo(t time.Time) Updates { return result } -// UpdateIndexOutOfRangeError is return when appling an update to an object +// UpdateIndexOutOfRangeError is return when applying an update to an object // and the update index is out of range. type UpdateIndexOutOfRangeError struct { Index int From 49375d1559af212722a58c2d3e95afd2244605f9 Mon Sep 17 00:00:00 2001 From: Marcel Meyer Date: Thu, 28 Jan 2021 12:36:04 +0100 Subject: [PATCH 3/3] Fix typo in struct tags --- relation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relation.go b/relation.go index 368c34e..3cc46ec 100644 --- a/relation.go +++ b/relation.go @@ -75,7 +75,7 @@ type Member struct { // Orientation is the direction of the way around a ring of a multipolygon. // Only valid for multipolygon or boundary relations. - Orientation orb.Orientation `xml:"orienation,attr,omitempty" json:"orienation,omitempty"` + Orientation orb.Orientation `xml:"orientation,attr,omitempty" json:"orientation,omitempty"` // Nodes are sometimes included in members of type way to include the lat/lon // path of the way. Overpass returns xml like this.