Skip to content

bug: reverse stringified LatLon object instead of sending coordinates - #49

Merged
mtmail merged 1 commit into
masterfrom
reverse-lat-lon-object
Aug 27, 2026
Merged

mtmail merged 1 commit into
masterfrom
reverse-lat-lon-object

Conversation

@mtmail

@mtmail mtmail commented Aug 27, 2026

Copy link
Copy Markdown
Member

Turns out the reverse search was hardly working, it stringified objects. Reverse is a side-feature, not the main feature of this leaflet library. Added more tests.

| Input                       | Resulting query               |
| --------------------------- | ----------------------------- |
| `L.latLng(51.5, -0.12)`     | `q=LatLng%2851.5%2C+-0.12%29` |
| `{ lat: 51.5, lng: -0.12 }` | `q=%5Bobject+Object%5D`       |

@mtmail
mtmail merged commit 6daf638 into master Aug 27, 2026
3 checks passed
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