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

Create a Location model #13

Closed
4 tasks done
raphodn opened this issue Nov 2, 2023 · 0 comments · Fixed by #35, #36, #37 or #38
Closed
4 tasks done

Create a Location model #13

raphodn opened this issue Nov 2, 2023 · 0 comments · Fixed by #35, #36, #37 or #38

Comments

@raphodn
Copy link
Member

raphodn commented Nov 2, 2023

Story

We'll store the price's location info separately.
We'll fetch the data from OpenStreetMap.

Some fields to store :

  • osm_id & osm_type
  • osm_display_name
  • osm_lat
  • osm_lon
  • other ?

Tasks

  • Location model
  • on Price create, check if a Location already exists, or create a new on + link it to the Price
  • on Location create, fetch metadata from OSM
  • api endpoint ?

Linked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment