ramvijay / VivaManagementSystem

Automating the existing viva management process.
1 stars 2 forks source link

GeoLocation API Python #20

Open Deltatiger opened 7 years ago

Deltatiger commented 7 years ago

Migrating the GeoLocation API from JS to Python so that data can be fetched dynamically.

Deltatiger commented 7 years ago

Stuck due to there being few types of URLs. Certain URL's are not being resolved to provide a latitude and longitude which can be provided to Geolocation API. Working on identifying a way to fix this issue.

Stuff that does not work: https://goo.gl/maps/7YJDcMR5aYC2 -> https://www.google.com/maps?cid=15115202288188553232&hl=en&gl=in&shorturl=1

This seems to be something from the places API. Will update once I get this working.

Deltatiger commented 7 years ago

@ramvijay @SureshBalusamy There seems to be some irregularity with the GeoLocation API.

Current Output : {"Coimbatore": 3, "Tamil Nadu": 3, "Bangalore Urban": 7, "Guindy": 1, "Kanchipuram": 1, "Chennai": 1, "Perungudi": 3, "Pune": 2} Chennai should also include : Kanchipuram / Perungudi / Tamil Nadu (This is Zoho ), Guindy

So Basically it is returning various levels of data which seem to be different for each address.

The API works but needs more fine tuning.

SureshBalusamy commented 7 years ago

Hi Need not to worry. Just group by what google says. We have to go by with some standard format. Fact: Zoho is not at all in chennai. :)

On Sat, Jan 14, 2017 at 6:47 PM, DeltaTiger notifications@github.com wrote:

@ramvijay https://github.com/ramvijay @SureshBalusamy https://github.com/SureshBalusamy There seems to be some irregularity with the GeoLocation API.

Current Output : {"Coimbatore": 3, "Tamil Nadu": 3, "Bangalore Urban": 7, "Guindy": 1, "Kanchipuram": 1, "Chennai": 1, "Perungudi": 3, "Pune": 2} Chennai should also include : Kanchipuram / Perungudi / Tamil Nadu (This is Zoho ), Guindy

So Basically it is returning various levels of data which seem to be different for each address.

The API works but needs more fine tuning.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ramvijay/VivaManagementSystem/issues/20#issuecomment-272623614, or mute the thread https://github.com/notifications/unsubscribe-auth/AXuc7MJd30jLyL_sT6veDWt2PsPJ2D7Eks5rSMrtgaJpZM4Lhkb0 .

--

*With Thanks and Regards*Suresh Balusamy Ph.D Associate Professor Department of Applied Mathematics and Computational Sciences

*PSG College of Technology*Coimbatore-641006 M +91 98403 91924 T +91 422 2572177 Extn 4257