My geolocation in OpenLayers is incorrect by more than 5000 meters. I want to correct this issue, how can I programatically move my geolocation to the most accurate location? Or is it even possible?

  • Which coordinate system do you use? Are your raw coordinates exact, so is only the visualization in OpenLayers wrong? – Mesa Aug 23 '18 at 19:08
  • @Mesa Projected coordinate system (in meters), but i'm not sure which, I am located in Addis Ababa, Ethiopia. My location wrongly shows about 5000 meters to North when zooming. This seems to be an accuracy issue with OpenLayers 5 itself, but how can i correct it? – Kaleab Woldemariam Aug 23 '18 at 19:46
  • OL geolocation exmple page shows correct location with my device. try the example with your device. OL's geolocation just use browser's geolocation. so the location should be up to your device. – Chase Choi Aug 24 '18 at 1:24
  • @Kaleab Knowing the SRID/EPSG code of the used coordinate system is essential for working with spatial data. – Mesa Aug 24 '18 at 7:20
  • @Mesa the srid=20137 (UTM 37 Adindan). Even in the example given, accuracy is 6000meters. – Kaleab Woldemariam Aug 24 '18 at 16:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.