Skip to content
Open
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
2 changes: 1 addition & 1 deletion storage/geostorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (g *GeoStorage) AxialFromGeo(latitude, longitude float64) coordinate.Axial
// would i fly around the world with this - no. But for a square mile it should be fine.

latitudeDifference := latitude - g.lat
longitudeDiffernece := longitude - g.lon
// longitudeDifference := longitude - g.lon

verticalOffset := 111131.77741377673104 / math.Pow(1+0.0033584313098335197297*math.Cos(2*latitudeDifference), 1.5)
horizontalOffset := 111506.26354049367285 * math.Cos(latitudeDifference) / math.Pow(1+0.0033584313098335197297*math.Cos(2*latitudeDifference), 0.5)
Expand Down
2 changes: 1 addition & 1 deletion storage/simplemap.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func NewSimpleMap() SimpleMap {

// Get returns a the key associated with a coordinate, or the
func (s SimpleMap) Get(key coordinate.Interface) (interface{}, bool) {
if _, ok := s[key]; ok {
if _, ok := s[key]; !ok {
return nil, false
}

Expand Down