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

improved street intersection support #107

Merged
merged 6 commits into from
Jul 8, 2020
Merged

Conversation

missinglink
Copy link
Member

@missinglink missinglink commented Jun 23, 2020

[note] don't bother reviewing this for now, it's made up of several smaller PRs which can be reviewed and merged independently

A Geocode Earth client has requested that the /v1/search API in Pelias can identify and query street intersections (something which libpostal isn't able to support).

We already support intersection parsing in pelias/parser but when I added some additional test cases I noticed a variety of failures due to the intersection solutions stripping away all admin info and some USA-centric street conventions we don't currently support.

This PR is driven by the test cases added in the first commit, I'm going to try and get them all passing, as a result there may be some other linked PRs along the way to fix intermediary issues.

@missinglink
Copy link
Member Author

Added #108 to solve some of the USA highway names not parsing correctly.

@missinglink
Copy link
Member Author

Added #110 to fix some other street name classsifications

@missinglink missinglink force-pushed the intersection_improvements branch 2 times, most recently from 81a434e to f741fe6 Compare June 23, 2020 12:38
@missinglink
Copy link
Member Author

Added #111

@missinglink missinglink force-pushed the intersection_improvements branch from f741fe6 to 3cb09c9 Compare June 25, 2020 09:11
@missinglink
Copy link
Member Author

rebased master

@missinglink missinglink force-pushed the intersection_improvements branch from 3cb09c9 to 10e56d4 Compare June 25, 2020 09:13
@missinglink missinglink marked this pull request as ready for review June 25, 2020 12:01
@missinglink
Copy link
Member Author

All but one test case are passing now, I've opened up #112 to tackle that separately.

@missinglink
Copy link
Member Author

I think this is good-to-go now.

The really complex intersection queries can take >50ms on my laptop which isn't ideal ;(
Hopefully we can find a way to speed them up at some point in the future.

@missinglink missinglink merged commit 80643c5 into master Jul 8, 2020
@missinglink missinglink deleted the intersection_improvements branch July 8, 2020 16:55
orangejulius added a commit to pelias/api that referenced this pull request Jul 8, 2020
This includes all the latest intersection parsing abilities from
pelias/parser#107
orangejulius added a commit to pelias/api that referenced this pull request Jul 10, 2020
This includes all the latest intersection parsing abilities from
pelias/parser#107
orangejulius added a commit to pelias/api that referenced this pull request Jul 10, 2020
This includes all the latest intersection parsing abilities from
pelias/parser#107
blackmad pushed a commit to pelias/api that referenced this pull request Jul 21, 2020
This includes all the latest intersection parsing abilities from
pelias/parser#107
blackmad pushed a commit to pelias/api that referenced this pull request Aug 4, 2020
This includes all the latest intersection parsing abilities from
pelias/parser#107
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

Successfully merging this pull request may close these issues.

1 participant