Closed shashankpr closed 7 years ago
Do you want to request a feature, report a bug, or ask a question about wit?
Bug
What is the current behavior?
The Bot returns time for every ordinary query. Query like "John here" is identified as address of location.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Make a list of countries, their names and their Lat, Long values. Fetch time only if the address belongs to the list.
Easier method : Check api response and exclude non-country and non-political types.
What is the expected behavior?
Should throw an error or not return time value for "ordinary" queries.
Time is returned on City's coordinates.
No coordinates can obtained for Countries, hence query should be cities only.
Fixed by #26
Do you want to request a feature, report a bug, or ask a question about wit?
Bug
What is the current behavior?
The Bot returns time for every ordinary query. Query like "John here" is identified as address of location.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Make a list of countries, their names and their Lat, Long values. Fetch time only if the address belongs to the list.
Easier method : Check api response and exclude non-country and non-political types.
What is the expected behavior?
Should throw an error or not return time value for "ordinary" queries.