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

Rename Mapzen to Pelias, add GeocodeEarth #309

Merged
merged 2 commits into from Jul 6, 2018
Merged

Conversation

KostyaEsmukov
Copy link
Member

Mapzen has been shut down, but the geocoder software has been open-sourced (see https://pelias.io/).

In this PR the Mapzen class has been renamed to Pelias, which initializer accepts domain as a required first argument, pointing to the custom Pelias instance.

Also GeocodeEarth geocoder (which extends Pelias) has been added, which is the hosted Pelias service provided by the Pelias developers themselves (See the comment #258 (comment)).

I've added test-cases for both Pelias and GeocodeEarth, however, in Travis pipelines only GeocodeEarth is tested (which should be enough, considering that GeocodeEarth extends Pelias with a single difference – it has a default domain).

GeocodeEarth has rather low rate limits: there're a lot of skips in the test runs due to HTTP 429 responses. I'm not sure what we can do with that on our side (except switching over to pre-stored/mocked responses, like with vcrpy, as proposed in #203), so I'm going to keep this as-is for now.

Related discussion: #258

@KostyaEsmukov KostyaEsmukov added this to the 1.15 milestone Jul 3, 2018
@KostyaEsmukov KostyaEsmukov merged commit ca4216b into master Jul 6, 2018
@KostyaEsmukov KostyaEsmukov deleted the mapzen-to-pelias branch July 6, 2018 12:41
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.

None yet

1 participant