SRvSaha / CoWinVaccineSlotFinder

Cross-Platform Software to Fetch the Available Slots & Book the Appointment for COVID-19 Vaccination
https://shawt.io/r/sYv
MIT License
81 stars 32 forks source link

Search by Both PIN Code and District to be Allowed with Preference on PIN Code #12

Closed SRvSaha closed 3 years ago

SRvSaha commented 3 years ago

Currently, feature is available to either book using PIN Code or using District with by default PIN Code being selected. However it would be nice if feature can be added so that user can search by both with preference to PIN Code first and then district so that in case user doesn't get slot for a particular PIN Code, they might be able to get slot on the district level.

SRvSaha commented 3 years ago

Feature is added with commit: e6e71fcab956d0289f9fef67c01510d2302a7bf0

How to Use the Feature:

In appsettings.json, both the fields so searching by district and PIN Code should be set to True. Also, the PIN Codes and Districts must be entered under PINCodes and Districts Section Respectively.

Example:

"IsSearchToBeDoneByDistrict": true, 
"IsSearchToBeDoneByPINCode": true,
"Districts": {
  "Bhandara": 370,
  "Mumbai": 395
},
"PINCodes": {
  "MyFirstPreference": 441804,
  "MySecondPreference": 400051
}

@PSuyog97 @priyanka1111 Please test/review if the feature is working properly.