Skip to content

Commit

Permalink
add radius for single points (#3)
Browse files Browse the repository at this point in the history
* add radius for single points

* radius opzionale
  • Loading branch information
lillodipiazza authored Jan 14, 2024
1 parent f3cb49c commit ff3ec04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/methods/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export class SearchServiceArea extends Method {

const body = {
points: criteria.points,
radius: criteria.radius,
priceOrder: criteria.priceOrder ?? 'desc',
fuelType: `${criteria.fuelType ?? FuelType.ALL}-${
criteria.refuelingMode ?? RefuelingMode.ALL
Expand Down
1 change: 1 addition & 0 deletions src/types/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface SearchBaseCriteria {

export interface SearchByZoneCriteria extends SearchBaseCriteria {
points: MapPoint[]
radius?: number
}

export interface SearchByGeographicAreaCriteria extends SearchBaseCriteria {
Expand Down

0 comments on commit ff3ec04

Please sign in to comment.