petrnymsa/coffee-time

[FEATURE] API: getNearby - rankby distance parameter

Closed this issue · 0 comments

Feature description
As default, the rankby=distance will be used to display the nearest cafes.

Proposed solution
From google point of view:

  • Extend getnearby endpoint with rankby parameter.
  • If rankby is used, the radius parameter must be omitted.

Extend API that:

  • if radius is provided - use radius , rankby=prominence (default)
  • if no radius provided - rankby=distance is used internally

Definition of done

  • Api is extended
  • Api is tested