Skip to content

Commit

Permalink
t backend/feat/igm integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreyash Pankaj committed Sep 6, 2024
1 parent 4e0c3aa commit b521e02
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/mobility-core/src/Kernel/External/Maps/Interface.hs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ snapToRoadWithFallback mbMapServiceToRectifyDistantPointsFailure SnapToRoadHandl
if dist < maxStraightLineRectificationThreshold
then pure (x1, dist)
else do
distanceRes <- getDistance mapServiceCfg (GetDistanceReq {origin = x1, destination = x2, travelMode = Just CAR, distanceUnit = req.distanceUnit} :: GetDistanceReq LatLong LatLong)
distanceRes <- getDistance mapServiceCfg (GetDistanceReq {origin = x1, destination = x2, travelMode = Just CAR, distanceUnit = req.distanceUnit, sourceDestinationMapping = Nothing} :: GetDistanceReq LatLong LatLong)
pure (x1, metersToHighPrecMeters distanceRes.distance)
)
straightDistancePoints
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ data CreateTicketReq = CreateTicketReq
phoneNo :: Maybe Text,
personId :: Text,
classification :: Classification,
rideDescription :: Maybe RideInfo
rideDescription :: Maybe RideInfo,
becknIssueId :: Maybe Text
}

data RideInfo = RideInfo
Expand Down
1 change: 0 additions & 1 deletion lib/mobility-core/src/Kernel/Types/Beckn/City.hs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ instance ToHttpApiData City where
toUrlPiece Siliguri = "std:0353"
toUrlPiece Durgapur = "std:0342"
toUrlPiece Asansol = "std:0341"
toUrlPiece Durgapur = "std:0342"
toUrlPiece Petrapole = "std:03215"
toUrlPiece Gangtok = "std:03592"
toUrlPiece Darjeeling = "std:0354"
Expand Down
6 changes: 6 additions & 0 deletions lib/mobility-core/src/Kernel/Types/Beckn/Context.hs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ data Action
| ON_CANCEL
| ON_RATING
| ON_SUPPORT
| ISSUE
| ON_ISSUE
| ISSUE_STATUS
| ON_ISSUE_STATUS
deriving (Generic, Show, Eq, ToSchema)
deriving (PrettyShow) via Showable Action

Expand All @@ -114,6 +118,8 @@ mapToCbAction = \case
CANCEL -> Just ON_CANCEL
RATING -> Just ON_RATING
SUPPORT -> Just ON_SUPPORT
ISSUE -> Just ON_ISSUE
ISSUE_STATUS -> Just ON_ISSUE_STATUS
_ -> Nothing

getSubscriberType :: Action -> Subscriber.SubscriberType
Expand Down

0 comments on commit b521e02

Please sign in to comment.