TextPrediction | DataScience Capstone Project
kandi X-RAY | TextPrediction Summary
kandi X-RAY | TextPrediction Summary
The presentation can be found here The final product can be found here.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of TextPrediction
TextPrediction Key Features
TextPrediction Examples and Code Snippets
Community Discussions
Trending Discussions on TextPrediction
QUESTION
I am trying to return all food establishments relating to the users text input, however I am aware that Googles Text Search request will only allow for one type to be specified (i.e restaurant). I want to be able to return all results of the following types: [restaurant, cafe, meal_delivery, meal_takeaway]. Furthermore, I do not want to use Nearby Text request due to the radius limit of 50km.
I was wondering if there was a method to return results of more than one type apart from making duplicate API calls with a different type specified.
Below is a snippet of my code making the API request with only one type specified.
...ANSWER
Answered 2020-Sep-14 at 07:15A solution was to return all establishment types and then check the json result if the types field contains "food"
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install TextPrediction
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page