pelias / pip-service

Pelias point-in-polygon-service
https://pelias.io
MIT License
16 stars 18 forks source link

lon-lat here vs lat-lon in interpolation #107

Closed jeremy-rutman closed 5 years ago

jeremy-rutman commented 5 years ago

the lon:lat format used here is opposite of what's being used in interpolation , and 'lat-lon' seems to be the more common order .

missinglink commented 5 years ago

The Pelias codebase favours [lon, lat] ([x,y]) as per the geojson spec. There is no industry-accepted coordinate ordering, so it's best not to assume anything, refer to the docs if in doubt. We try to adopt key->value (?lat=xxx&lon=xxx) where possible and I believe all other HTTP endpoints adhere to that convention to avoid ambiguities.