Ever wanted to build a system where you can process map data just like Google maps or Apple maps? We are going to do exactly just that in this article 🚀. First, we would look into some basics of geographic system terminology and then dive directly i...
techblog.geekyants.com11 min read
Hi, Thanks for the write up. You say
In the above you imply (northerly, easterly) ordering i.e (latitude, longitude) And in your examples you have the ordering latitude, longitude
However GeoDjango says in its docs
The default spatial reference system for geometry fields is WGS84 (meaning the SRID is 4326) – in other words, the field coordinates are in longitude, latitude pairs in units of degrees.
Also the GeoJson spec specifies the order longitude, latitude
A position is an array of numbers. There MUST be two or more
elements. The first two elements are longitude and latitude, or
easting and northing
You seem to be storing this in the wrong order in your database, anything I am missing that could help?
Paul Onteri
Software Engineer
Good read!