Kozinak196 / emweather

Automatically exported from code.google.com/p/emweather
0 stars 0 forks source link

Feature Request: Select city based on location #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
People have requested being able to have the app choose the city based on
location.  This would be interesting though there are a few issues:

First I will have to figure out how to map the location info to environment
canada's city code xml file.

Secondly, the list of cities/city codes is a fairly big xml file and the
parsing takes a bit of time.  Especially over edge, this means it is
something we wouldn't want to do on every startup.  Maybe just once or if
you move cities.

I will definitely look into this.  I haven't used the location API before.

Original issue reported on code.google.com by emweat...@gmail.com on 20 Sep 2009 at 1:57

GoogleCodeExporter commented 8 years ago
Preliminary location detection has been added in 0.9.3.7.7

- go to "change city" in main app, with gps, wifi, or mobile wireless activated
- if your city is correctly detected, a notice will pop up letting you know it 
was correctly detected and your spinners will be updated.

Original comment by emweat...@gmail.com on 22 Jul 2010 at 1:35

GoogleCodeExporter commented 8 years ago
I have code snippet to get the correct location of the user (COARSE AND FINE 
LOCATION) according to the xml file. I put all the city code into sqlite file 
and retreive the nearest city code.

Original comment by Olivier....@gmail.com on 13 May 2011 at 2:38

GoogleCodeExporter commented 8 years ago
This is great, I'd love to take a look at it and bring it into the app.  Right 
now the city location code is flakey.

I am planning on adding a better city interface soon with "favourite" cities so 
if you commute often you don't need to keep digging through the lists for the 
same city.  Your code would go perfectly with that.

Can you attach the patch here?  Or email it to me.

Thanks,
em

Original comment by emweat...@gmail.com on 13 May 2011 at 5:39

GoogleCodeExporter commented 8 years ago
em
Go there to find the src.
The code is the first version... not much comments!

http://code.google.com/p/ludo-locator/

Original comment by Olivier....@gmail.com on 13 May 2011 at 10:00

GoogleCodeExporter commented 8 years ago
I fixed the location acquiring code, it seems to be working fine now.  Olivier, 
I did not integrate your database as googles reverse geo-location seems to work 
fine.  Something I will keep on hand in case it becomes necessary in the future.

Users, please let me know if you are still having problems with the 
auto-detection!

Original comment by emweat...@gmail.com on 5 Jun 2011 at 11:59

GoogleCodeExporter commented 8 years ago
(fixed in 0.9.5.6.6)

Original comment by emweat...@gmail.com on 6 Jun 2011 at 12:00