Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

TravelFeed v1 #2

Merged
merged 5 commits into from
Mar 30, 2019
Merged

TravelFeed v1 #2

merged 5 commits into from
Mar 30, 2019

Conversation

tiotdev
Copy link
Member

@tiotdev tiotdev commented Mar 30, 2019

The following modifications were made to Hivemind to create a customised instance fit for the needs of TravelFeed:

hive_posts_cache:

  • Valid posts with a minimum word count of 250 words and travelfeed in the tags and/or category are marked with true in the new column is_travelfeed. Defaults to false.

  • Add columns for latitude and longitude, osm_type and osm_id. At a later release, these will be extracted from the post's json_metadata. In the current version, nothing is extracted from the json_metadata since the specification of how the information will be stored is work in progress. Instead the post body is scanned for a SteemitWorldMap code snippet (swmregex), osm_type and osm_id are obtained from Nominatim (see below). Default to NULL.

  • Add PostGIS to the database and a column for geo_location. This enables better location queries.

  • Add columns for osm_type, osm_id, country_code, subdivision, city, and suburb, all provided by Nominatim using geopy. Default to NULL.

  • Add column for curation_score: Percentage of vote by @travelfeed. Defaults to 0.

  • Modified column total_votes to show the "travelfeed miles", each vote is counted by its percentage (0-10)

hive_accounts:

  • Add columns for facebook, instagram, youtube, couchsurfing populated from the json_metadata. Default to NULL.

Calls from the API to the Hivemind database will include:

  • Location search: Get posts where latitude and longitude is in certain range, possibly sorted by proximity to a given location;
  • Text search: Get posts by full text search;
  • Feeds: Get posts where author / one or multiple tags / country / subdivision / area / neighbourhood matches/contains request; Get posts chronologically for all authors that are followed by a certain user.
  • User search: Get user where location / Steem username / Steem display_name / instagram / facebook / twitter / youtube / couchsurfing ID matches request;
  • Order posts by curation score or chronologically;
  • Get a list of sublocations (e.g. cities in subdivision)

@tiotdev tiotdev merged commit ce2aa0b into travelfeed-io:master Mar 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant