cowinapi / developer.cowin

This group is created to facilitate technical and integration discussions related to cowin platform. API related contents can be obtained at API setu portal https://apisetu.gov.in/public/marketplace/api/cowin
115 stars 30 forks source link

The lat long returned in results is wrong #249

Open diwanshuster opened 3 years ago

diwanshuster commented 3 years ago

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.

gaurav8809 commented 3 years ago

Can you please let me know how you are calling the api?

diwanshuster commented 3 years ago

I am using the public API

https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id=704&date=18-05-2021

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.

gaurav8809 commented 3 years ago

Are you able to use this api? https://cdn-api.co-vin.in/api/v2/appointment/centers/public/findByLatLong

diwanshuster commented 3 years ago

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.

gaurav8809 commented 3 years ago

Yes correct

roshanbiswanath commented 3 years ago

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.

roshanbiswanath commented 3 years ago

The issue has been seen and closed here ISSUE Just ignore the lat long for now.