BharatSahAIyak / kisai-bot

0 stars 0 forks source link

chore: update maximum distance in dealer flow from 5km to 25km #497

Open techsavvyash opened 2 months ago

techsavvyash commented 2 months ago

Description

Increase the distance threshold in dealer flow nearest dealer calculation from 5KM to 25KM.

PriyanshiSoni11 commented 2 months ago
Query : Seed dealers (User's current location Bikaner   )
Response : There are no dealers within 25KM radius from your location
botRequest : {"app":"05f2d7c4-0a36-4ffe-8807-962d8f9a8141","payload":{"text":"Seed dealers","metaData":{"phoneNumber":"3355779996","hideMessage":false,"latitude":"28.0229","longitude":"73.3119","city":"Bikaner","state":"Rajasthan","ip":"27.58.4.165","debugId":"dd6ced3b-384a-4220-b69f-f79e6db15ebb"}},"from":{"userID":"29d81993-da66-46f3-bca7-317b8be5dc51"},"messageId":{"Id":"c2128ddd-b17e-4d47-879f-d803d7059665","channelMessageId":"803d1ae4-80b7-4361-a804-5852a5f094a2"},"userId":"29d81993-da66-46f3-bca7-317b8be5dc51"}

Query : Seed dealers in bikaner ( User's current location Lucknow   )
Response : Here is the list of dealers in Bikaner  Dealer Name: BALAJI AGRO SALES Dealer Type: seed District: Bikaner Pincode: 334303 Block: Bajju Gram Panchayath: Nagrasar,  Dealer Name: CHOUDHARY AGRO AGENCY Dealer Type: seed District: Bikaner Pincode: 334305 Block: Bajju Gram Panchayath: Ranjeetpura,  Dealer Name: CHOUDHARY FERTILIZERS Dealer Type: seed District: Bikaner Pincode: 334305 Block: Bajju Gram Panchayath: Ranjeetpura,  Dealer Name: SHRI GANESH BEEJ BHANDAR Dealer Type: seed District: Bikaner Pincode: 334305 Block: Bajju Gram Panchayath: Ranjeetpura,  Dealer Name: GURU KRIPA AGRO AGENCY Dealer Type: seed District: Bikaner Pincode: 334305 Block: Bajju Gram Panchayath: Ranjeetpura
botRequest : {"app":"05f2d7c4-0a36-4ffe-8807-962d8f9a8141","payload":{"text":"Seed dealers in bikaner","metaData":{"phoneNumber":"3355779996","hideMessage":false,"latitude":"26.7761604","longitude":"80.9116626","city":"Lucknow","state":"Uttar Pradesh","ip":"22.222.33.22","debugId":"dd6ced3b-384a-4220-b69f-f79e6db15ebb"}},"from":{"userID":"29d81993-da66-46f3-bca7-317b8be5dc51"},"messageId":{"Id":"2bfac15c-233d-4a6a-8051-b77ba5eb0047","channelMessageId":"907e69c5-a60b-4c12-b3d2-fd237c1b5fbc"},"userId":"29d81993-da66-46f3-bca7-317b8be5dc51"}

distance threshold in dealer flow is changed to 15Km but User location should be picked when queries don't have location.

cc : @techsavvyash @Sreejit-K

PriyanshiSoni11 commented 2 months ago
Query : Seed dealers (User's current location Bikaner   )
Response : There are no dealers within 25KM radius from your location
botRequest : {"app":"05f2d7c4-0a36-4ffe-8807-962d8f9a8141","payload":{"text":"Seed dealers","metaData":{"phoneNumber":"3355779996","hideMessage":false,"latitude":"28.0229","longitude":"73.3119","city":"Bikaner","state":"Rajasthan","ip":"27.58.4.165","debugId":"dd6ced3b-384a-4220-b69f-f79e6db15ebb"}},"from":{"userID":"29d81993-da66-46f3-bca7-317b8be5dc51"},"messageId":{"Id":"c2128ddd-b17e-4d47-879f-d803d7059665","channelMessageId":"803d1ae4-80b7-4361-a804-5852a5f094a2"},"userId":"29d81993-da66-46f3-bca7-317b8be5dc51"}

Query : Seed dealers in bikaner ( User's current location Lucknow   )
Response : Here is the list of dealers in Bikaner  Dealer Name: BALAJI AGRO SALES Dealer Type: seed District: Bikaner Pincode: 334303 Block: Bajju Gram Panchayath: Nagrasar,  Dealer Name: CHOUDHARY AGRO AGENCY Dealer Type: seed District: Bikaner Pincode: 334305 Block: Bajju Gram Panchayath: Ranjeetpura,  Dealer Name: CHOUDHARY FERTILIZERS Dealer Type: seed District: Bikaner Pincode: 334305 Block: Bajju Gram Panchayath: Ranjeetpura,  Dealer Name: SHRI GANESH BEEJ BHANDAR Dealer Type: seed District: Bikaner Pincode: 334305 Block: Bajju Gram Panchayath: Ranjeetpura,  Dealer Name: GURU KRIPA AGRO AGENCY Dealer Type: seed District: Bikaner Pincode: 334305 Block: Bajju Gram Panchayath: Ranjeetpura
botRequest : {"app":"05f2d7c4-0a36-4ffe-8807-962d8f9a8141","payload":{"text":"Seed dealers in bikaner","metaData":{"phoneNumber":"3355779996","hideMessage":false,"latitude":"26.7761604","longitude":"80.9116626","city":"Lucknow","state":"Uttar Pradesh","ip":"22.222.33.22","debugId":"dd6ced3b-384a-4220-b69f-f79e6db15ebb"}},"from":{"userID":"29d81993-da66-46f3-bca7-317b8be5dc51"},"messageId":{"Id":"2bfac15c-233d-4a6a-8051-b77ba5eb0047","channelMessageId":"907e69c5-a60b-4c12-b3d2-fd237c1b5fbc"},"userId":"29d81993-da66-46f3-bca7-317b8be5dc51"}

distance threshold in dealer flow is changed to 15Km but User location should be picked when queries don't have location.

cc : @techsavvyash @Sreejit-K

As distance threshold change is working fine. For above issue raising new Ticket. - https://github.com/BharatSahAIyak/BHASAI-Integration-Testing/issues/146