Skip to content

feat(search): accept a typed coordinate as a "Go to" result#23

Merged
beetlebugorg merged 1 commit into
mainfrom
feature/search-coordinates
Jun 26, 2026
Merged

feat(search): accept a typed coordinate as a "Go to" result#23
beetlebugorg merged 1 commit into
mainfrom
feature/search-coordinates

Conversation

@beetlebugorg

Copy link
Copy Markdown
Owner

Search now recognises a latitude/longitude typed in any common notation and offers a "Go to coordinate" hit pinned to the top of the results, so Enter jumps straight there. Lenient about how it's entered:

  • decimal degrees "-32.4943, 60.931" "32.4943 S 60.931 E"
  • degrees-decimal-minutes "32°29.66'S, 060°55.86'E" "39°27.6′N 104°39.6′W"
  • degrees-minutes-seconds "32 29 40 S 60 55 52 E"

°/′/″ marks optional (plain ' and " accepted), hemisphere by N/S/E/W (either case) or a leading −, lat/lon separated by comma/semicolon or whitespace. New util.parseLatLon is the inverse of fmtLatLon (round-trips); non-coordinates and out-of-range values fall through to the normal chart/feature search.

Search now recognises a latitude/longitude typed in any common notation and
offers a "Go to coordinate" hit pinned to the top of the results, so Enter jumps
straight there. Lenient about how it's entered:

- decimal degrees          "-32.4943, 60.931"   "32.4943 S 60.931 E"
- degrees-decimal-minutes  "32°29.66'S, 060°55.86'E"   "39°27.6′N 104°39.6′W"
- degrees-minutes-seconds  "32 29 40 S  60 55 52 E"

°/′/″ marks optional (plain ' and " accepted), hemisphere by N/S/E/W (either
case) or a leading −, lat/lon separated by comma/semicolon or whitespace. New
util.parseLatLon is the inverse of fmtLatLon (round-trips); non-coordinates and
out-of-range values fall through to the normal chart/feature search.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@beetlebugorg beetlebugorg merged commit d0efa29 into main Jun 26, 2026
4 checks passed
@beetlebugorg beetlebugorg deleted the feature/search-coordinates branch June 26, 2026 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant