Skip to content

Commit

Permalink
Normalize relative scores from 0 to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepepple committed Aug 19, 2020
1 parent c2e1fc9 commit 3bcf7ea
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const zoom_levels = {
20: 'Rooftop ~ 1:1 K'
}

// TODO: Get from Vibemap constants
export const main_categories = [
// Going Out
{ key: 'all', value: 'all', text: 'Categories', label: { icon: 'building', circular: true }, categories: ['art', 'arts', 'books', 'comedy', 'community', 'culture', 'free', 'health', 'local', 'nightlife', 'recurs', 'romance', 'urban'] },
Expand All @@ -59,6 +60,7 @@ export const main_categories = [
{ key: 'shopping', value: 'shopping', text: 'Shopping', label: { icon: 'shopping bag', circular: true }, categories: ['shopping'] },
]

// TODO: Get from Vibemap constants
export const activty_categories = [
{ key: 'arts', value: 'arts', text: 'Arts', label: { icon: 'paint brush', circular: true }, categories: ['art', 'arts', 'craft', 'dance', 'immersive', 'performance'] },
{ key: 'comedy', value: 'comedy', text: 'Comedy & Storyteling', label: { icon: 'microphone', circular: true }, categories: ['community']},
Expand Down
9 changes: 9 additions & 0 deletions src/redux/offers.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,15 @@
"category": "special",
"link": "https://www.instagram.com/thevalenciaroom/",
"place_id": ""
},
{
"name": "Como Chico and Como Mercado Popup",
"description": "We hope to be back to Como Taperia as soon as we can, but in the meantime, we are happy to welcome you to our little pop-up. Inspired by many visits to small Tapas Bars and Mercados in Barcelona, Madrid, and all over Spain, we have transformed Como into a whole new space. Our current hours right now are Wednesday-Sunday 2-9 pm.",
"category": "popup",
"link": "https://www.comotaperia.com/wineandconservas",
"place_id": ""
}



]
6 changes: 3 additions & 3 deletions src/services/VibeMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,9 @@ module.exports = {
const popular_bonus = 5

// Weight distance & rating different than other fields
const vibe_factor = 1.2
const distance_factor = 0.5
const rating_factor = 0.5
const vibe_factor = 1.0
const distance_factor = 0.3
const rating_factor = 0.3

var start = window.performance.now();

Expand Down

0 comments on commit 3bcf7ea

Please sign in to comment.