JSONFeed
JSONFeed copied to clipboard
Adopt Location Properties for Items
This is mentioned in https://github.com/manton/JSONFeed/issues/94...specifically that JSONFeed needs location properties, citing GeoRSS and GeoJSON.
There are a few basic options as I see it.
- Location(optional, array of floats) - that uses the vocabulary of the GeoJSON point. [lon, lat, alt], with Altitude being optional.
- Location(optional, string) - uses a GEO URI
- Location(optional, object) - Has optional properties of latitude, longitude, altitude, and name. Name representing the proper name of a location.
I solved that with a custom property in items, adopting straight from GeoJSON:
"_geo": {
"about": "http://geojson.org/",
"type": "Point",
"coordinates": [
-74.008762,
40.696696
]
}