Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select center with center id #521

Open
biggersmilesj opened this issue Jun 14, 2021 · 4 comments
Open

select center with center id #521

biggersmilesj opened this issue Jun 14, 2021 · 4 comments

Comments

@biggersmilesj
Copy link

at my pincode I have 4 centers for 18+ some of them are 40km away, so i am asking about is there any available filter for choosing specific center id only.

Thank you

@karanssh
Copy link

If they're all at separate pin codes you can filter by pin codes to achieve this.

@salian
Copy link

salian commented Jun 14, 2021

Pin code generally covers ~10 km diameter circle. 40 km is a very very large pincode. Postmen at that delivery office must be going crazy. Can you share the pincode?

If you are comfortable with editing python code, take a look at

if not isinstance(options, bool):
pincode_filtered_options = []
for option in options:
for location in pin_code_location_dtls:
if int(location["pincode"]) == int(option["pincode"]):
# ADD this filtered PIN code option
pincode_filtered_options.append(option)
for _ in range(2):
beep(location["alert_freq"], 150)
options = pincode_filtered_options

Here after choosing search option 3, the list of valid options for the district are returned, and are being checked against pin code list. You can modify this part to check against your preferred center id list instead. This will not incur any additional requests.

@biggersmilesj
Copy link
Author

biggersmilesj commented Jun 14, 2021 via email

@SRvSaha
Copy link

SRvSaha commented Jun 14, 2021

370001 Bhuj-Kutch

In case if you not familiar with Python to make the changes, you may like to use this:

https://shawt.io/r/sYv

Demo available here: https://shawt.io/r/sYK

You’ll have to modify this part to filter by your centre name.

"IsSearchToBeDoneForVaccinationCentreName": false, // Set this is true if you want to search for specific Centres within your PINCode/District
"VaccinationCentreNames": [ // Don't change me if you are not setting IsSearchToBeDoneForVaccinationCentreName as true
"REPLACE_ME_WITH_YOUR_VACCINATION_CENTER_NAME_1",
"REPLACE_ME_WITH_YOUR_VACCINATION_CENTER_NAME_2"
], // You need to put the exact names of the Vaccination Centres for which you want to search. You'll get that from CoWIN Portal

@biggersmilesj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants