Skip to content

Neighbors doesn’t seem to work properly across the antimeridian #6

@samritchie

Description

@samritchie

Calling Neighbors on a hash that abuts the 180th meridian returns incorrect values:

> GeoHash.Neighbors "rb";;
val it : string [] = [|"rc"; "rc"; "rb"; "pz"; "pz"; "px"; "r8"; "r9"|]

It appears to shift the NE, E & SE neighbours one hash west, presumably it’s somehow truncating the longitude to 180?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions