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

Need to modify search services API #44

Open
varunon9 opened this issue Aug 24, 2018 · 0 comments
Open

Need to modify search services API #44

varunon9 opened this issue Aug 24, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@varunon9
Copy link
Member

Currently API filters the result based on latitude and longitude with a threshold of 0.3 ~ 47 KM. This means that user will get results within 47 KM of his location.
Since we'll have shortage of data, lets remove this restrictions.
So behavior of API would be-

  1. fetch all results from db with upper limit of 50.
  2. calculate an additional value zoomLevel based on how dispersed are service locations. This zoomLevel should be between (10 and 15) or (10/15) and will be used to set zoom level on google map. e.g. if results are among multiple cities then zoomLevel would be 10 and if results are within a city the zoomLevel should be 15.
    Some zoom-level with corresponding views are-

1: World
5: Landmass/continent
10: City
15: Streets
20: Buildings

@varunon9 varunon9 added the enhancement New feature or request label Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant