-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Dammyololade/development
Development
- Loading branch information
Showing
11 changed files
with
151 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import '../../flutter_polyline_points.dart'; | ||
|
||
/// description: | ||
/// project: flutter_polyline_points | ||
/// @package: | ||
/// @author: dammyololade | ||
/// created on: 13/05/2020 | ||
class PolylineResult { | ||
|
||
/// the api status retuned from google api | ||
/// | ||
/// returns OK if the api call is successful | ||
String status; | ||
|
||
/// list of decoded points | ||
List<PointLatLng> points; | ||
|
||
/// the error message returned from google, if none, the result will be empty | ||
String errorMessage; | ||
|
||
PolylineResult({this.status, this.points = const [], this.errorMessage = ""}); | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
/// description: | ||
/// project: flutter_polyline_points | ||
/// @package: | ||
/// @author: dammyololade | ||
/// created on: 12/05/2020 | ||
class PolylineWayPoint { | ||
|
||
/// specifies the location of the waypoint, | ||
/// as a LatLng, as a google.maps.Place object | ||
/// or as a String which will be geocoded. | ||
dynamic location; | ||
|
||
/// is a boolean which indicates that the waypoint is a stop on the route, | ||
/// which has the effect of splitting the route into two routes | ||
bool stopOver; | ||
|
||
|
||
PolylineWayPoint({@required this.location, this.stopOver = true}); | ||
|
||
Map<String, dynamic> toMap() => { | ||
"location": location.toString(), | ||
"stopover": stopOver | ||
}; | ||
|
||
@override | ||
String toString() { | ||
return "location=${location.toString()},stopover=$stopOver"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/// description: | ||
/// project: flutter_polyline_points | ||
/// @package: | ||
/// @author: dammyololade | ||
/// created on: 12/05/2020 | ||
enum TravelMode { driving, bicycling, transit, walking } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters