Geo - inconsistent typing
Hey Team,
Was just playing with the API and noticed some inconsistencies with the geo attribute. It looks like in comes cases the geo attribute is sent through as an empty array. Unsure if this in intentional but thought it might be worth flagging either way :).
"data": { "id": "bc2ce9f4-bd70-487c-b736-29fc506dffbf", "type": "place", "attributes": { "name": "Golden Bay", "_id": "889", "uuid": "bc2ce9f4-bd70-487c-b736-29fc506dffbf", "placeType": "area", "url": "https://climbnz.org.nz/nz/si/golden-bay", "description": "<p>Includes Paines Ford, Pohara, Sandhill Creek, Lake Sylvester.</p>\n", "altitude": null, "altitudeUnit": "m", "access": "", "accessPrivate": "null", "walktime": null, "aspect": null, "attribution": "Information Collated by Simon Middlemass, and also http://paynesford.blogspot.com/", "geo": [] }, }
versus:
"data": { "id": "7658553c-3dfa-48f9-ae68-d9ffe05b3063", "type": "place", "attributes": { "name": "Paines Ford", "_id": "1498", "uuid": "7658553c-3dfa-48f9-ae68-d9ffe05b3063", "placeType": "crag", "url": "https://climbnz.org.nz/nz/si/golden-bay/paines-ford", "description": "<p>Paines Ford is probably New Zealand’s most ...", "altitude": null, "altitudeUnit": "m", "access": "<p>Lets look after the place. Please!</p>\n<p>Paines Ford is ...", "accessPrivate": "redacted", "walktime": "5-15 min", "aspect": "west", "attribution": "Climbs have been collated by Simon Middlemass", "geo": { "point": { "latitude": "-40.883923000000", "longitude": "172.810672000000" }, "attributes": { "topo50": "BP24 840 741", "nzms260": "N26 940 358" } } }
`