Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt Location Properties for Items #145

Open
dshanske opened this issue Aug 25, 2020 · 1 comment
Open

Adopt Location Properties for Items #145

dshanske opened this issue Aug 25, 2020 · 1 comment

Comments

@dshanske
Copy link

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.
@fboes
Copy link

fboes commented Nov 18, 2020

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
        ]
      }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants