amadeus4dev / amadeus-node

Node library for the Amadeus Self-Service travel APIs
https://developers.amadeus.com
MIT License
191 stars 66 forks source link

Is there a way to sort the results of pois endpoint by rank #192

Closed YounesAEO closed 1 year ago

YounesAEO commented 1 year ago

Description

I am using the library to collect pois in a certain city. I noticed that there is a rank field that gives an information about the popularity of the city. But I can't find a way in the documentation to sort the results based on the rank, which makes the rank property somewhat useless. Because collecting all the points of interest and then sort them in the client side is not practical and costy in terms of ressources.

Steps to Reproduce

  1. Initialize amadeus client
  2. Call amadeus.referenceData.locations.pointsOfInterest.get()
tsolakoua commented 1 year ago

Hello @YounesAEO, indeed you would have to programmatically sort the results you get based on the rank.