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

Value of City in Address is Equal to District #59

Open
KhairulRijl opened this issue Aug 7, 2018 · 1 comment
Open

Value of City in Address is Equal to District #59

KhairulRijl opened this issue Aug 7, 2018 · 1 comment

Comments

@KhairulRijl
Copy link

Hi,
i have an issue about return value of detailRequest from NMAPlacelink. I try the code below:

` self.searchLinkResults[indexPath.row].detailsRequest().start { (request, responseData, error) in
guard error == nil else{
return
}

            if request is NMAPlaceRequest{
                if let place = responseData as? NMAPlace{
                    debugPrint(place.name)
                    debugPrint(place.location?.address?.city)
                    debugPrint(place.location?.address?.county)
                    debugPrint(place.location?.address?.state)
                    debugPrint(place.location?.address?.street)
                    debugPrint(place.location?.address?.district)
                }
            }
        }

`

the result is address.city and address.district is same value but is not valid, but if i use geocoding function is valid and have same value.

is that a bugs or issue, or should i to use geocoding function?

thanks!.

@tlushney
Copy link
Contributor

tlushney commented Sep 7, 2018

@KhairulRijl Could you provide details - what request are you used?

Generally address.city and address.district should be different - but for same regions they are same. If you provided the information I will be able to check the behavior.

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