feat: Add Latitude/Longitude Coordinate Detector#44
Merged
melihbirim merged 4 commits intomainfrom Feb 22, 2026
Merged
Conversation
Co-authored-by: melihbirim <398797+melihbirim@users.noreply.github.com>
Co-authored-by: melihbirim <398797+melihbirim@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add function to detect geographic coordinates
feat: Add Latitude/Longitude Coordinate Detector
Feb 22, 2026
melihbirim
reviewed
Feb 22, 2026
| Medium difficulty: | ||
|
|
||
| - Geographic coordinates | ||
| - ~~Geographic coordinates~~ ✅ (implemented) |
Owner
There was a problem hiding this comment.
Don't add emoji. And what is the reason of having ~~ here? @copilot
Owner
There was a problem hiding this comment.
Don't add emoji. And what is the reason of having ~~ here? @copilot
Contributor
Author
There was a problem hiding this comment.
Removed the strikethrough and emoji in b4eddca. The line now reads simply - Geographic coordinates (implemented).
Co-authored-by: melihbirim <398797+melihbirim@users.noreply.github.com>
melihbirim
approved these changes
Feb 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
Adds geographic coordinate detection supporting decimal degree lat/lon pairs. Returns
'coordinate'for comma-separated pairs within valid ranges (lat: -90 to 90, lon: -180 to 180).Related Issue
Changes Made
isCoordinate()function inindex.jsusingPATTERNS.COORDINATEregex with range validationDataTypes.COORDINATE = 'coordinate'constantpredictDataTypes()so coordinate pairs aren't split on the commatest/index.spec.jscovering valid pairs, boundary values, out-of-range lat/lon, single numbers, and three-number stringsindex.d.tswith'coordinate'inDataTypeunion andCOORDINATEinDataTypesobjectREADME.mdwith coordinate type in supported types table, usage examples, andDataTypes.COORDINATEconstant listingROADMAP.mdto mark Geographic Coordinates as completed (plain text, no emoji or strikethrough formatting)Checklist
Required (PR will not be merged without these):
git rebase main)npm test) — 123 passingnpm run lint)index.d.tsCode Quality:
feat:,fix:,style:, etc.)') not double quotes (")console.logstatements in codeTest Results
Avoiding Conflicts
Thank you for contributing! 🎉
See CONTRIBUTING.md for detailed guidelines.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.