Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run the test API? #59

Open
xinyuluo opened this issue Dec 7, 2021 · 1 comment
Open

How to run the test API? #59

xinyuluo opened this issue Dec 7, 2021 · 1 comment

Comments

@xinyuluo
Copy link

xinyuluo commented Dec 7, 2021

Hello,

I tried to use geocoder-tester to test Nominatim, and I ran the following command:

py.test --tb short --api-url https://nominatim.openstreetmap.org/ -m iledefrance --save-report log/nominatim-url.log --api-type nominatim

result I got:

1161 failed, 473 passed, 647 skipped, 20013 deselected, 34 warnings in 895.47s (0:14:55)

which seems surprisingly low accuracy for me. Is this expected, or I missed something / ran the API in the wrong way?

Thank you!

@lonvia
Copy link
Contributor

lonvia commented Dec 14, 2021

This test suite collects acceptance tests and are used to compare the performance of different geocoders (or versions of them). It is perfectly normal that some tests fail.

When running against Nominatim, the tests with geographic reference are currently skipped because the API doesn't support a point localisation. It is on the TODO list to somehow change the tests, so Nominatim's bbox-based parameter can be used.

Side note: Please do not run the tests against the main API. This will get you banned from it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants