Closed mrdvt92 closed 4 months ago
@mrdvt92: I apologize that this issue went unanswered for so long. You may or may not be aware of this, but I believe your suggestion was already implemented in the Locate Service with this PR:
https://github.com/m-lab/locate/pull/177
Try adding the query string ?country=US&strict=true
. I'm going to close this issue because a) I believe it is resolved b) it is not related to ndt-server. If something is still wrong, please open a new issue on the Locate repository.
The query http://locate.measurementlab.net/v2/nearest/ndt/ndt7?country=US appears to return results simply based on the "country" center point (e.g. Kansas for the US) but in the US there are many geographically dispersed servers and the servers returned by the US country filter are not optimal test servers.
But, without the US country filter, the results are a more logical server subset.
I recommend that the logic behind the country filter first perform a geographic select then a text string country filter.
The filter logic should also support a country filter list.