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

chore: convert text to venue #168

Open
wants to merge 8 commits into
base: beta
Choose a base branch
from
Open

chore: convert text to venue #168

wants to merge 8 commits into from

Conversation

amanuela97
Copy link
Contributor

@amanuela97 amanuela97 commented Feb 11, 2022

As a Developer I need a function getVenueFromText(input): Venue so that I can implement #143 and #101

It should return existing venue from venues collection (find by place_id) or add new one.

Examples of input:

  • "Marienplatz"
  • "Marienplatz, Munich"
console.log(getVenueFromText('Marienplatz')) 

should output this object:

Return:

{
  name: suggestion.name,
  id: suggestion.place_id,
  rooms: '',
  map: '',
  address: suggestion.value,
  createdAt: Date.now(),
}

Closes #158

Demo: https://wedance-amanuela97.netlify.app/demo/venueFromText/

larrycoal and others added 4 commits February 8, 2022 22:59
* integration of prettier tailwindcss plugin
* reformat codebase

Co-authored-by: Aleksey Razbakov <aleksey@razbakov.com>
Copy link
Contributor

@razbakov razbakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it working?

pages/demo/test.vue Outdated Show resolved Hide resolved
pages/demo/test.vue Outdated Show resolved Hide resolved
pages/demo/test.vue Outdated Show resolved Hide resolved
@amanuela97 amanuela97 force-pushed the textToVenue branch 6 times, most recently from f3e695a to f4b47bc Compare March 4, 2022 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants