Open diwanshuster opened 3 years ago
Can you please let me know how you are calling the api?
I am using the public API
The same is the case for any API having centre details in them.
Again, it can be a data entry issue. Just wanted to make sure whether such is the case.
Are you able to use this api? https://cdn-api.co-vin.in/api/v2/appointment/centers/public/findByLatLong
This always gives Unauthenticated Access. Anyway the lat long data for Vaccinations centres is not correct. So even if this API works, the returned results will be inaccurate.
Yes correct
This might not be an issue of return data type, because some centers have 0,0 as their lat long. Thus, they might just have inadequate data and just filled up with a certain district co-ordinate for every center in an area. If you need Lat Long for each center try reverse geocoding for the name of centre provided.
The issue has been seen and closed here ISSUE Just ignore the lat long for now.
Please check the lat longs returned in results. Not sure whether the returning integer is a data entry issue or the return data type is integer. A sample is:
{ "center_id": 697488, "name": "GOVT.INTER COLLEGE Dewayal", "address": "GIC Dewayal Sult", "state_name": "Uttarakhand", "district_name": "Almora", "block_name": "sult", "pincode": 263676, "lat": 29, "long": 79, "from": "10:00:00", "to": "14:00:00", "fee_type": "Free", "sessions": [ { "session_id": "6335f4a5-3c0f-4d85-b367-7a343d321c5b", "date": "17-05-2021", "available_capacity": 0, "min_age_limit": 18, "vaccine": "COVISHIELD", "slots": [ "10:00AM-11:00AM", "11:00AM-12:00PM", "12:00PM-01:00PM", "01:00PM-02:00PM" ], "available_capacity_dose1": 0, "available_capacity_dose2": 0 } ] }
The lat and long returned here is 29 and 79. Please check and correct. This will be very useful for plotting maps as the vaccine centre names are very ambiguous and it is getting very difficult for people to reach at centre.