Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typos and redundant parenthesis #23

Merged
merged 3 commits into from
Feb 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions osmpbf/decode_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,15 +382,15 @@ 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()
if err != nil {
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 {
Expand Down
4 changes: 2 additions & 2 deletions relation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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<<versionBits))
return FeatureID(relationMask | id<<versionBits)
}

// ElementID is a helper to convert the id to an element id.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion replication/changesets.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@ func (ds *Datasource) changesetURL(n ChangesetSeqNum) string {
ds.baseURL(),
n/1000000,
(n%1000000)/1000,
(n % 1000))
n % 1000)
}
2 changes: 1 addition & 1 deletion replication/interval.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,5 +343,5 @@ func (ds *Datasource) baseSeqURL(sn SeqNum) string {
sn.Dir(),
n/1000000,
(n%1000000)/1000,
(n % 1000))
n % 1000)
}
2 changes: 1 addition & 1 deletion update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down