-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Easting / Northing to LatLon Accuracy #8
Comments
A follow up to this, when I run
Results: 51.51346, -0.07592, This is close but not accurate when checking with Google Maps. When I use this form http://www.bgs.ac.uk/data/webservices/convertForm.cfm Results: 51.5139688159, -0.0775306313912 The results from the form are different and accurate, do I need to change the way i load the class to get accurate results? Thanks Again! |
Hi So there are a few issues at play here - in the below I'm going to assume you're not familiar with any of the intricacies of geographic co-ordinates and I'll dumb it down a bit in the interests of brevity. A fuller explanation of everything can be found in https://www.ordnancesurvey.co.uk/docs/support/guide-coordinate-systems-great-britain.pdf Basically:
Conclusions:
Hope that helps? |
Assuming this helped you out - if not, please do reopen :) |
Hi,
I have been using this class to convert a bunch of Easting / Northing, I found when checking the converted values against a map that the LatLng was slightly off.
When the results where compared against a online tool for I noticed that the only difference was the length of the results.
To test this I adjusted LatLng.php
$this->lat = round($lat, 5);
$this->lng = round($lng, 5);
to
$this->lat = round($lat, 13);
$this->lng = round($lng, 13);
This changes moved the point on the map by about 100 meters and was more accurate.
Does the class support getting LatLng out in a longer format?
Thanks for the great work!
The text was updated successfully, but these errors were encountered: