Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geolocation support #79

Closed
xereda opened this issue Nov 1, 2016 · 6 comments
Closed

Geolocation support #79

xereda opened this issue Nov 1, 2016 · 6 comments

Comments

@xereda
Copy link

xereda commented Nov 1, 2016

Hello,

I'll leave a validation suggestion. Today it is common to use the type of GeoJSON data where the coordinates of a geo spatial location are informed. It would be interesting to have a validation for this field type.

Rules:

Longitude: values between -180.000001 and 180.999999

Latitude: values between -85.000001 and 85.999999

What is the feasibility of implementing these rules?

I appreciate your feedback.

@xereda
Copy link
Author

xereda commented Nov 1, 2016

If this is not possible, please forward which current validations can be used to meet this rule !?

Thank you.

@xereda
Copy link
Author

xereda commented Nov 1, 2016

I tried to use the decimal, but it does not allow negative number.

@logaretm
Copy link
Owner

logaretm commented Nov 1, 2016

I missed this. I need to support negative numbers into the decimal rule, thanks for your feedback and sorry about that!

@logaretm
Copy link
Owner

logaretm commented Nov 1, 2016

On a side note, doesn't the between rule work for you? it should support negative numbers as well and I think its very suitable than the decimal rule.

between:-180.999999,180.999999

@xereda
Copy link
Author

xereda commented Nov 1, 2016

It works!

tks

@logaretm
Copy link
Owner

logaretm commented Nov 1, 2016

Great, I just fixed the decimal rule to allow negative numbers, thanks very much for the feedback!

@logaretm logaretm closed this as completed Nov 1, 2016
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

No branches or pull requests

2 participants