MapboxGeocoder.swift icon indicating copy to clipboard operation
MapboxGeocoder.swift copied to clipboard

Fileprivate identifier on Placemark.

Open Kdan opened this issue 6 years ago • 1 comments

The identifier field of the Placemark (MBPlacemark) class is currently fileprivate. This introduces complexity when persisting and matching Placemark objects. Will this be accessible in the future?

Thanks /Kewin

Kdan avatar Nov 19 '18 10:11 Kdan

We changed the access level from private to fileprivate in #72. I think the reason for making them private was that the numeric portion of each identifier isn’t guaranteed to be stable; it’s somewhat of an implementation detail. If we expose the identifier property publicly, there might have to be a caveat about the values being arbitrary and potentially unsuitable for long-term storage.

1ec5 avatar Jan 23 '19 07:01 1ec5