convertFromRoutingPoint function

MakerInfo convertFromRoutingPoint(
  1. SmWaypoints waypoint
)

Implementation

MakerInfo convertFromRoutingPoint(SmWaypoints waypoint) {
      Random random = new Random();
      return MakerInfo(
      type: 'spoint',
      id: random.nextInt(100000000),
      lat: waypoint.location.latitude,
      lng: waypoint.location.longitude,
      name: waypoint.name,
      address: waypoint.name,
      phone: '',
      img: '',
      fax: '',
      email: '',
      routingInfo: null,
    );

}