• Stars
    star
    117
  • Rank 301,828 (Top 6 %)
  • Language
    HTML
  • License
    MIT License
  • Created about 15 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Zero-effort creation of Location-aware Rails application based on W3C Geolocaton API.

GeoMereLaal

(जियो मेरे लाल : ji-oo-me-re-laal : "Keep it up baby!")

GeoMereLaal plugin is all you need to create Location-Aware rails application based on W3C Geolocaton API.

Quick Audio Intro: Thanks to Ruby5 Podcast

What's Location-Awareness?

W3C proposed an API in which internet browsers can have capability to retrieve geo-location of the user via multiple sources (Wifi, LBS, IP, browser cookies) and share it with web apps so that apps can serve content based on user's location.

Who supports it?

<tr>
<td>Safari</td>
<td>Support is <a title="Geolocation API support in Safari" href="http://blogs.computerworld.com/node/14114/print">coming soon</a> in the IPhone’s Safari browser.</td>
</tr>
<tr>
<td>Internet Explorer</td>
<td>An experimental support available from IE8.</td>
</tr>            
Web Browser Geolocation API support
Mozilla Firefox supported in Firefox 3.5 and later versions.
Chrome Supports thru Google Gears Geolocation API
Opera Supported in nightly builds – download from this page

How do I use it?

Step 1 : Install

 script/plugin install git://github.com/parolkar/geo_mere_laal.git 

Step 2 : Create form (as you always did but with new helpers)

Note: You may want to generate Address model this way script/generate model Address street:string locality:string city:string state:string country:string zip:string lat:string lng:string

   

<% form_tag('#') do  -%>
   <%= label :address,"street","Street" -%>
   <%= street_field :address, "street" %>    
	
   <%= label :address,"locality","Locality" -%>
   <%= locality_field :address, "locality" %>  

   <%= label :address,"city","City" -%>
   <%= city_field :address, "city" %>  

   <%= label :address,"state","State" -%> 
   <%= state_field :address, "state" %>      

   <%= label :address,"country","Country Name" -%>
   <%= country_name_field :address, "country" %>

   <%= label :address,"zip","Postal Code" -%>
   <%= postal_code_field :address, "zip" %>
    
<% end %>

Step 3: ...... there is no step 3 ;-)

The rendered form will auto fill the content with user's geolocation

Output

Copyright (c) 2009 Abhishek Parolkar, released under the MIT license

More Repositories

1

pfeed

A rails plugin that allows you to create extensible log of activity
Ruby
177
star
2

deployment_pipeline

[Workflow] Deployment Pipeline - An opinionated continuous delivery workflow for Agile Teams
Ruby
49
star
3

active_log

Auto version control for your activerecord objects
Ruby
38
star
4

has_profile_items

A plugin to ease your effort of building profile of user, company, project, pet, group.... blah blah blah
Ruby
14
star
5

fluent-plugin-splunk

Splunk output plugin for Fluent event collector
Ruby
13
star
6

concerto

Computerized Adaptive Testing platform which combines R statistical engine
PHP
12
star
7

obey_robots_dot_txt

Easy to use extension of Net::HTTP to let you obey robots.txt while crawling/scrapping/mining
Ruby
11
star
8

why_sandbox

Mirror of _why's sandbox , which was heart of tryruby
Ruby
10
star
9

inflectionist

Complex linguistic processing on top of ActiveSupport's Inflections in form of a plugin
Ruby
10
star
10

fluent-plugin-http-enhanced

Enhanced HTTP input plugin for Fluent event collector
Ruby
9
star
11

smstrolley

A high performace framework for SMS based Ruby Applications with support for SMPP, SameSession & Push protocols and intelligent cost-model
Ruby
9
star
12

fluent-plugin-udp

This fluent input plugin allows you to collect incoming events over UDP
Ruby
7
star
13

mesos-babushka

babushka-deps to provision Apache Mesos
Ruby
6
star
14

watson4rails

A boilerplate Ruby On Rails app for IBM Watson's Dialog API
CSS
5
star
15

automated_sysadmin_screen_test

Automated SysAdmin Screen Test - write interview test in **Rspec** and provision a problem environment using **Puppet**
Puppet
5
star
16

local_news_radar

A rails plugin which gathers local news/tweets like a spider and make it available for you to query thru your existing model (Based on outside.in api)
Ruby
4
star
17

rails-app-skeleton

This is a quick skeleton with preconfigured environment for rspec, deployment (Vlad) , jrails (jquery drop-in replacement)
Ruby
3
star
18

brew_install_hadoop

Ruby
2
star
19

awesome-mesos

A curated list of awesome apache mesos resources, frameworks and other awesomeness.
2
star
20

rancho

Location based full text search plugin for rails app
Ruby
2
star
21

RubyConfLogo

This is logo proposal for RubyConfIndia 2010
1
star
22

imageloads

1
star
23

creative-design

Parolkar's design works released under Creative Commons
1
star
24

crorepati_uncle

CSV to QIF
1
star
25

momsmatter

Moms Matter Initiative's Open Source Code
Ruby
1
star