Commit
750f10105143dbef0039872edea837e25941c3e8
Exists in
staging
and in
26 other branches
angular_poc, api-article-archived, api-homepage, api_visitor, article-readonly, caching-rails4, captcha_serpro_plugin, comment_paragraph_api, comments_api_reply, content-manager-hostspot, environment-api, export-comment-paragraph, fix_event_date_issue, fix_multitenancy, fix_profile_wall, fix_string_downcase_and_upcase, fix_upload_files_on_development_environment, json_cookie_serializer, login-captcha, master, new_security, new_video_plugin, pg_search_rank, production, resend_confirmation_email, tasks_keep_filter_params
Georef module to help with distance calculations
Signed-off-by: Larissa Reis <larissa@colivre.coop.br>
|
| @@ -0,0 +1,6 @@ |
| @@ -0,0 +1,6 @@ |
|
| |
1
| +module Noosfero::GeoRef |
|
| |
2
| + |
|
| |
3
| + KM_LAT = 111.2 # aproximate distance in km for 1 degree latitude |
|
| |
4
| + KM_LNG = 85.3 # aproximate distance in km for 1 degree longitude |
|
| |
5
| + |
|
| |
6
| +end |