-
Notifications
You must be signed in to change notification settings - Fork 58
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
Support parsing of <center> element for ways (XML only) #27
Conversation
N.B. ideally this should be implemented for JSON and relations
Thanks for your contribution. Some tests failed with the following error message.
Can you please provide a query to test your changes and/or write a test. |
Conflicts: overpy/__init__.py
… nodes using live OSM data
I've fixed I've also added a test involving another XML file. This represents the same way used in another test, but is what would be returned if the N.B. the query I used also included the |
Thanks for your contribution. I had a quick look at your code. But I will do some more tests before merging it. |
Hi, @phibos could you test this PR? |
I have merged the source with the latest master branch and have created a new pull request #47 |
The 'out center' Overpass QL option provides a centroid for each way in a
element. I've added support for parsing the element, but N.B. only for ways (not relations) and only for XML (not JSON).I've also corrected a mistake in the 'Unknown element end' KeyError message.