facilityregistry / fred-api

Facility Registry API Documentation Website
11 stars 4 forks source link

Explicitly document lat/long order #13

Closed ctford closed 11 years ago

ctford commented 11 years ago

In the geolocation section, we use GeoJson derived coordinates:

coordinates: [-1.6917, 29.5250]

The spec doesn't say whether the first number is latitude or longitude. This should be added briefly to avoid ambiguity.

mberg commented 11 years ago

Cool. Was following geojson. Are you cool with coordinates as a field name? On Dec 4, 2012 1:35 PM, "Chris Ford" notifications@github.com wrote:

In the geolocation section, we use GeoJson derived coordinates:

coordinates: [-1.6917, 29.5250]

The spec doesn't say whether the first number is latitude or longitude. This should be added briefly to avoid ambiguity.

  • Chris, Morten, Bharti

    — Reply to this email directly or view it on GitHubhttps://github.com/facilityregistry/fred-api/issues/13.

ctford commented 11 years ago

Yes, following GeoJson is fine for both the coordinates name and the structure of the points. Would just be good to make sure everyone knows it's not long/lat. :-)

mberg commented 11 years ago

updated

mortenoh commented 11 years ago

According to the spec, the order is [lng, lat]

http://www.geojson.org/geojson-spec.html#appendix-a-geometry-examples

mberg commented 11 years ago

k that's really weird as having else is lat, long. I guess in terms of x, y then it's right. Will change

On Sun, Dec 9, 2012 at 2:31 PM, Morten Olav Hansen <notifications@github.com

wrote:

According to the spec, the order is [lng, lat]

http://www.geojson.org/geojson-spec.html#appendix-a-geometry-examples

— Reply to this email directly or view it on GitHubhttps://github.com/facilityregistry/fred-api/issues/13#issuecomment-11170116.