MikeNGarrett / rcm

Provide a way for volunteers to create and update rescue cases.
Other
5 stars 7 forks source link

Geolocation #5

Open MikeNGarrett opened 10 years ago

MikeNGarrett commented 10 years ago

We need to get geolocation data from the browser if it's available. If not we can fall back to a user-input for location search via the google geocoding api (https://developers.google.com/maps/documentation/geocoding/).

Since we're in a remote part of the country it would be nice to have the ability to further refine your exact location via an actual map. For an example, see the Tracing and Rescue tabs in the backend of the case custom post type.

This can either be implemented on pages showing lists of cases or (if it's easier) as a separate feature that takes you to a proximity-based search result.

twerptwo commented 10 years ago

In addition to the geolocation API (client side), we could use this: http://software77.net/geo-ip/ (server side). There's an ugly PHP class on the software page which uses MySQL, that should be fast enough for this purpose.

MikeNGarrett commented 10 years ago

Thanks for your suggestion. The way Jason and I discussed it I believe it's best to combine geolocation (if available) with direct address lookup as input by the user. IP accuracy is unfortunately not reliable.

Jason just pushed up some code for this feature. I plan on giving it a look tonight.

aylusltd commented 10 years ago

If it's any consolation, @twerptwo, I started down the same route with a WP plugin that's using ip lookup, and I'm actually in the process of changing that back to HTML5 with a form fallback specifically because it's so unreliable.

My office in WI is showing up in SC in test runs, and the plugin is marking the fields as read-only, so I've got my work cut out for me.

Sincerely, -Jason C. Nichols

On Tue, Nov 12, 2013 at 3:00 PM, Mike Garrett notifications@github.comwrote:

Thanks for your suggestion. The way Jason and I discussed it I believe it's best to combine geolocation (if available) with direct address lookup as input by the user. IP accuracy is unfortunately not reliable.

Jason just pushed up some code for this feature. I plan on giving it a look tonight.

— Reply to this email directly or view it on GitHubhttps://github.com/MikeNGarrett/rcm/issues/5#issuecomment-28332681 .

MikeNGarrett commented 10 years ago

Since the location and proximity data is there I closed that other task. I'd like this task to incorporate both the front-end interface for getting the user's location and the templates for displaying cases that are near the user's location.