https://github.com/billbrod/restaurant-map

Simple site for saving restaurants

https://github.com/billbrod/restaurant-map

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.7%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Simple site for saving restaurants

Basic Info
  • Host: GitHub
  • Owner: billbrod
  • License: mit
  • Language: HTML
  • Default Branch: main
  • Size: 14.6 KB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created 11 months ago · Last pushed 11 months ago
Metadata Files
Readme License

README.md

restaurant-map

Simple site for saving restaurants, using FastAPI, htmx, tinydb and maplibre-gl. based on simplesite for basic structure.

Build

  • Use uv and install with uv sync
  • Then create the css with tailwind: uv run tailwindcss -i src/restaurant_map/static/src/input.css -o src/restaurant_map/static/css/main.css
  • Then run the map with uv run fastapi dev src/restaurant_map/main.py --port 8011, then will be live at localhost:8011 (or pass run instead fo dev for production)

todo

  • [ ] add types to tags? type, subtypes, cuisines, details
    • [ ] then display tags in that order, sorted within each category
    • [ ] if tag type not specified, consider it a detail
    • [ ] priority? something to specify places I want to try
    • [ ] only one type allowed (restaurant, bakery, grocery), but any number for the others
    • [ ] and then separate color maps within each?
  • [ ] also add to db:
    • [ ] visited: date, rating, review, dishes (with four point scale: incredible, good, fine, bad)
    • [ ] should there be an overall rating? which is just mean of all ratings? or have an option to do something like mean/latest?
    • [x] id: hash of coordinates, then use that for selections
    • [ ] url(s)
  • [x] on both view, click on either map or list should jump corresponding pointin other
    • list to map: can call map.flyTo with the coordinates directly
    • map to list: need to check which view we're in, to determine whether to highlight on list or display popup
      • add list sort by distance to click, and just trigger that
  • [x] on both view, sort by distance from current location
  • [ ] ingest geojson:
    • [ ] don't add duplicate based on coordinates
    • [ ] add ability to add tag to all imported points
    • [ ] add ability to do through website?
  • [x] color circle based on tag.
    • [ ] right now just picking a tag, but should pick something reasonable in ontoogy
  • [x] add name when zoomed in on all the way
  • [ ] add export to text, with toggles for which fields to include
  • [ ] check how exported geojson works with organic maps or osmand
  • [ ] show tags at top of page and filter them by tapping on them
  • [x] then ch 4
  • [ ] add point: with all fields, autocomplete existing tags. add ability to put in either coordinates or address and geocode to other
    • [ ] import, go right to add point, pre-completing those fields. then test with google maps, organic maps, etc
  • [ ] bulk edit tags: click to select locations and then add/remove tags to all, auto-completing
  • [ ] list should be easy to filter, sort, and include/exclude various info
    • [ ] should have "more info" button, which shows everything about current point. same as edit view, but can't edit
  • [ ] tag view? showing all tags, with number of tagged places, and making ontology clear
  • [ ] lists: add selected points / tags to list, then have separate ability to just view them
  • [ ] make website a progressive web app with offline support
    • offline should be readonly? would it be possible to get it working for other people who won't be connected to my webserver all the time
    • maplibre use local geojson
  • [ ] offline maps? using pmtiles? resources
  • [ ] search on map with geocoder?
  • [ ] pack it up as docker to run

Related links

Owner

  • Name: William F. Broderick
  • Login: billbrod
  • Kind: user
  • Location: New York, NY
  • Company: Flatiron Institute

Associate data scientist at Flatiron Institute, working to make computational neuroscience more open, cumulative, and reproducible.

GitHub Events

Total
  • Push event: 2
Last Year
  • Push event: 2

Issues and Pull Requests

Last synced: 10 months ago


Dependencies

pyproject.toml pypi
  • fastapi *
  • jinja2 >=3.1.6
  • pydantic-settings *
  • pytailwindcss >=0.2.0
  • tinydb *
  • uvicorn [standard]