Skip to content

Commit

Permalink
[Feat]: Adds all DOC campsites
Browse files Browse the repository at this point in the history
Problem
The index was only of DOC huts, but campsites are also of interest.
Some DB changes were necessary - a new field to detect whether a place
is a campsite or hut.

Solution
- Create a migration to add the `place_type` field to the
`adventure_log_places_places` table.
- Creates a Python script to load the campsites into the table. This
script also tidies up the entries by turning blank/null place,
place_slug, and region attributes to "unknown".

Note
1. Run `php artisan migrate --addon=finnito.module.places`
2. Run `python3 load_campsites_geojson.py`

Closes #36! Wahoo.
  • Loading branch information
finnito committed Aug 20, 2020
1 parent 702602a commit 54a662f
Show file tree
Hide file tree
Showing 6 changed files with 12,039 additions and 10 deletions.
Loading

0 comments on commit 54a662f

Please sign in to comment.