magentos-pl / opencaching-pl

Automatically exported from code.google.com/p/opencaching-pl
0 stars 0 forks source link

autofill home location? #188

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Taken from issue 68: 
http://m.opencaching.ro/near.php should autofill with home location (from 
profile) ((Not logic. This is mobile version and could be anywhere.))

There are many pages (not only the above mobile page) that use a sortof 
autofill for location. However, each page has it's own failures. 

If no location is specified in profile, N 00 00.000 E 000 00.000 is assumed. 
If no location is specified in profile, using profile location should default 
to a site specified default location rather then 0 0 coordinates. 
It could be a site default location or the location specified for the map shown 
on the home page. 

A page like "near" should attempt autofill in the following order: 
1) request location from browser, and use it. 
2) if 1) is denied or not available, try to use GeoIP (assuming free variant of 
this library)
(step 2 definitely requires additional implementation both as code and per node 
deployment by admins; consider this a possible future feature, maybe, ignore 
for the present)
3) if still no location available, get location from profile.
4) if profile location is 0 0, use a site specified default or coords of site 
homepage map. 

Original issue reported on code.google.com by andrixnet on 5 May 2015 at 1:45