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

Add postcode and centered lat/lon for each street in city_roads.csv #14

Open
make125 opened this issue Nov 20, 2017 · 2 comments
Open

Comments

@make125
Copy link

make125 commented Nov 20, 2017

Is this possible? And thank you for the scripts!!

@britiger
Copy link
Owner

Thanks for this very complex issue. There are two possible sources for the postcode:

  • postal_code tag on highway elements
  • postcode boundaries. These relations are rare outside of germany
    So I thing the postal_code tag of the highway elements are the best solution for the solution.

To get the centered lat/lon I need to split the roads into groups, e.g. by postcodes as suggested. Because there are roads with same names within big cities. If there no postal_code on some segments of the roads it causes that the road will be listed twice: with and without postcode, also if the road is the same logical. The other problem is if the equal named roads without postal_code in 2 different suburbs will be combined, so it generate a wrong lat/lon if I use the center.
I'll try to find a solution for this problem. This is the reason why I don't implement this at this time.

If I have some time I will try to implement a solution without solve the last described problem to generate a new script which generates a new city_postcode_roads.csv

britiger added a commit that referenced this issue Nov 25, 2017
@make125
Copy link
Author

make125 commented Nov 28, 2017

Great!! Thank you

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