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

'GeocoderRequest.Options' initializer is inaccessible due to 'internal' protection level #263

Closed
erpankajpatel opened this issue Aug 6, 2019 · 2 comments
Assignees
Labels
Milestone

Comments

@erpankajpatel
Copy link

Screenshot 2019-08-06 at 12 40 20 PM
here I am not able to access 'GeocoderRequest.Options', I had added a core location framework and all, it's not working with the latest version. I had the same as like given example.
Please help me with this.

@syedrazackimran
Copy link

Screen Shot 2019-08-16 at 10 16 03 AM

@erpankajpatel

I'm also getting the same error, I follow as per demo. Kindly do needfully

@erpankajpatel
Copy link
Author

erpankajpatel commented Aug 16, 2019

Screen Shot 2019-08-16 at 10 16 03 AM

@erpankajpatel

I'm also getting the same error, I follow as per demo. Kindly do needfully

I have resolved this by my self with an edit in pods

class Options {
         /// Additional custom paramters. It may override default service params
        public var params = [String: String]()
        
        /// Result's locale, by defualt is not set.
        ///
        /// Apple Service:
        /// The locale to use when returning the address information. You might specify a value for this parameter
        /// when you want the address returned in a locale that differs from the user's current language settings.
        /// Specify nil to use the user's default locale information. It's valid only if you are using apple services.
        public var locale: String?
        
        /// Return all the servicer params as query items.
        ///
        /// - Returns: [URLQueryItem]
        func serverParams() -> [URLQueryItem] {
            return params.map({ (key,value) in
                URLQueryItem(name: key, value: value)
            })
        }
        public init() {
            
        }
    }

Go to Pods -> SwiftLocation -> Geocoder+Support.swift -> find class name "class Options "
i have added only in existing code, public init() {}, you can directly paste my code as well, clear derived data and build and reopen your project, then it will resolve your problem.
let me if it will be resolved or not.

@malcommac malcommac added this to the 4.1.0 milestone Sep 14, 2019
@malcommac malcommac self-assigned this Sep 14, 2019
@malcommac malcommac added the bug label Sep 14, 2019
abakhtin added a commit to abakhtin/SwiftLocation that referenced this issue Sep 20, 2019
* commit 'e1eb681a94ba338bc92c4b529369c4318797186f':
  Added swift-package tools to 5.x
  Fixed never executed statment
  Updated podspec
  Bump to 4.1.0
  malcommac#248 Added documentation for dataFrequency
  malcommac#248 Added dataFrequency filter inside the LocationRequest object
  malcommac#252 Parsing of the place_id for OpenStreetMap in Place object (place_id)
  malcommac#261 Moved sources to Sources/SwiftLocation subdirectory to be compatible with Swift Package Manager
  malcommac#262 Added rawData property to get the raw JSON parsed from Place when using Google/OS services. Parsed place_id of Google Maps in identifier property.
  malcommac#263 GeocoderRequest.Options init() is now public

# Conflicts:
#	SwiftLocation.xcodeproj/project.pbxproj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants