Skip to content

Conversation

@stevevance
Copy link
Contributor

I was wondering why when using ArcGIS Online as a reverse geocoder would not return the United States state and the county. It turns out that the provider wasn't even returning an "adminLevels" array, which is what every other reverse geocode provider returns. I have added adminLevels to the returned object of a reverse geocode.

@willdurand willdurand requested a review from Nyholm April 23, 2018 00:16
Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

Thank you for this PR? Could you add (or extend) a test for this?

$countryCode = !empty($data->CountryCode) ? $data->CountryCode : null;

$adminLevels = [];
foreach (['Region', 'Subregion'] as $i => $property) {
Copy link
Member

Choose a reason for hiding this comment

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

Isn't it any more keys than these?

@jbelien
Copy link
Member

jbelien commented Nov 6, 2018

Hello @stevevance , any progress here ?

@Nyholm Nyholm closed this Dec 9, 2018
@Nyholm
Copy link
Member

Nyholm commented Dec 9, 2018

Closing due inactivity.

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.

3 participants