You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Placemark and its subclasses need initializers besides the init(from:) that takes a Decoder. Any initializer – even one that takes no parameters – would enable client code to create arbitrary placemarks for testing or to create adapters with other search sources.
Currently, the only way to create a Placemark or GeocodedPlacemark is to decode one from Carmen GeoJSON. Swift’s type system makes it awkward to manipulate JSON. Turf’s GeoJSON API doesn’t help a whole lot, because Carmen GeoJSON expects properties strewn about at the top level instead of inside the properties object.
Placemark and its subclasses need initializers besides the
init(from:)
that takes a Decoder. Any initializer – even one that takes no parameters – would enable client code to create arbitrary placemarks for testing or to create adapters with other search sources.Currently, the only way to create a Placemark or GeocodedPlacemark is to decode one from Carmen GeoJSON. Swift’s type system makes it awkward to manipulate JSON. Turf’s GeoJSON API doesn’t help a whole lot, because Carmen GeoJSON expects properties strewn about at the top level instead of inside the
properties
object./cc @mapbox/navigation-ios @avi-c
The text was updated successfully, but these errors were encountered: