Skip to content

[OpenCage] Locality #445

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

Merged
merged 2 commits into from
Dec 6, 2015
Merged

[OpenCage] Locality #445

merged 2 commits into from
Dec 6, 2015

Conversation

nicolassing
Copy link
Contributor

use city, town village or hamlet as locality

@nicolassing
Copy link
Contributor Author

poke @mtmail

If it's ok for you, I'll add some tests

@mtmail
Copy link
Contributor

mtmail commented Aug 17, 2015

Sure. Thanks.

Fyi, This is a list of aliases we use for our address formatting. https://github.com/OpenCageData/address-formatting/blob/master/conf/components.yaml

@nicolassing
Copy link
Contributor Author

ok thx :)

@willdurand
Copy link
Member

poke @geocoder-php/geocoder

protected function guessBestComponent(array $components, array $keys)
{
foreach ($keys as $key) {
if (isset($components[$key]) && !empty($components[$key])) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the isset check is superfluously.

@Baachi
Copy link
Member

Baachi commented Oct 9, 2015

Looks good 👍

@toin0u
Copy link
Member

toin0u commented Oct 9, 2015

Small CS stuffs but overall 👍

willdurand added a commit that referenced this pull request Dec 6, 2015
@willdurand willdurand merged commit 1521965 into geocoder-php:master Dec 6, 2015
@willdurand
Copy link
Member

thanks @nicolassing

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.

5 participants