Creates a new Waypoint class that wraps Coords and accepts an optional title. Because the refactor changes waypoints from List<Coord> into List<Waypoint>, this would be a breaking change with how showDirections is called.
Because the Android implementation appears to solely rely on URL construction (via getMapDirectionsUrl), I didn't have to adjust anything there - just the iOS implementation and common dart code.
This will only work for Apple Maps, as Google doesn't support waypoint labels :/
I've never worked with platform-specific plugin code and had to learn Swift (🤯) to figure this out, so please take a look!
I've tested the iOS example as well as the package in my own project for both Apple Maps iOS and Google Maps on Android.
See #113.
Creates a new Waypoint class that wraps Coords and accepts an optional title. Because the refactor changes
waypoints
fromList<Coord>
intoList<Waypoint>
, this would be a breaking change with howshowDirections
is called.Because the Android implementation appears to solely rely on URL construction (via
getMapDirectionsUrl
), I didn't have to adjust anything there - just the iOS implementation and common dart code.This will only work for Apple Maps, as Google doesn't support waypoint labels :/
I've never worked with platform-specific plugin code and had to learn Swift (🤯) to figure this out, so please take a look!
I've tested the iOS example as well as the package in my own project for both Apple Maps iOS and Google Maps on Android.