GeoDB Cities

ÜCRETSİZ PREMIUM
Verified
Taraf Michael Mogley | Güncelleyen 22日前 | Data
Popülerlik

9.9 / 10

Gecikme

54ms

Hizmet Düzeyi

100%

Health Check

100%

Tüm Tartışmalara Dön

sort option

Rapid account: Cmvro
Cmvro
5年前

I don’t see any sort option here, but it is supported by GeoDB Cities documentation: https://wirefreethought.github.io/geodb-cities-api-docs/

As results are being paginated, it is mandatory to sort them by name (or something else) while showing them to the user.

Rapid account: Wirefreethought
wirefreethought Commented 5年前

You are indeed correct. Not all endpoints returning collections currently provide sorting. The thought was some of these collections being returned are small enough that they could be sorted in whatever way on the client side. If it is critical for you, I can add a sort param to country regions (as well as countries). As far as pagination, the results should always be paginated consistently, even without an explicit sort specified.

Rapid account: Cmvro
Cmvro Commented 5年前

Hm, it seems that not all methods are having sort options, at least not the one I was looking for (GET Country Regions)

Sort must be available on any endpoint from my point of view

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun