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

Higher level function: Go through search result, calculate distance to point, sort and cutoff either on distance or number of results. #28

Open
eklem opened this issue Jul 11, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@eklem
Copy link
Owner

eklem commented Jul 11, 2023

function input:

  • array of objects (search results)
  • POI / your position
  • dot-notation to longitude for the objects
  • dot-notation to latitude for the objects
  • dot-notation for each object to what will be distance to POI
  • type of cutoff: distance/number of results
  • max-distance for results/max-number of results

How to feed dot-notation into a function and use it within that function.

@eklem eklem added the enhancement New feature or request label Jul 11, 2023
@eklem eklem self-assigned this Jul 11, 2023
@eklem eklem changed the title Higher order function: Go through search result, calculate distance to point and sort Higher level function: Go through search result, calculate distance to point, sort and cutoff either on distance or number of results. Jul 12, 2023
@eklem
Copy link
Owner Author

eklem commented Jul 12, 2023

Output:

  • array of objects (search results) with distance to POI, cutoff on distance/number
  • map view coordinates to fit the search results and POI

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