webmozarts / assert

Assertions to validate method input/output with nice error messages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: methods to validate latitude/longitude

lorenzomar opened this issue · comments

What do you think about 2 dedicated methods to assert latitude/longitude values?

lat/lon in what projection? In what format?

You're right.
it opens a can of worms if done well...

Maybe most of people think in term of WSG84 (major maps providers use that projection). But it would be a clear limitation.

This seems like a really specific use case, and not something that should be part of this project.