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

Normalise JSON #2

Open
mhamilt opened this issue Jan 18, 2025 · 3 comments
Open

Normalise JSON #2

mhamilt opened this issue Jan 18, 2025 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@mhamilt
Copy link
Owner

mhamilt commented Jan 18, 2025

Get the JSON and geoJSON into a standard format and order

Something like

{
  "name": "200 Degrees Coffee",
  "location": "Heston House, Meadow Lane, Nottingham, NG2 3HE",
  "established":"2020-01-01",
  "closed":"2021-01-01",
  "open": true,
  "url": "https://www.coffee.com/",
  "social": {"twitter":"@coffee","facebook":"coffee"},
  "coord": [52.942, -1.1361]
}

"closed" should only have a date is "open" is false

@mhamilt mhamilt added the enhancement New feature or request label Jan 18, 2025
@mhamilt mhamilt self-assigned this Jan 18, 2025
@mhamilt
Copy link
Owner Author

mhamilt commented Jan 18, 2025

fields like profile_image_url and handle can likely be discarded at this point, but are a good signifier on how accurate the data is.

@mhamilt
Copy link
Owner Author

mhamilt commented Jan 18, 2025

"social" should also be standard but the data is definitely more ephemeral. twitter is good indicator on how old it is.

@mhamilt
Copy link
Owner Author

mhamilt commented Jan 18, 2025

marker-symbol in geoJSON can be used to populate "open" field

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

No branches or pull requests

1 participant