geo_stalker 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +17 -2
- data/lib/geo_stalker/locator.rb +1 -0
- data/lib/geo_stalker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1d2c5018bbfdddb499144c7db1a5520cfabdcb57
|
|
4
|
+
data.tar.gz: 87ce2df4dcd347889edc2c3381ceaf653d45bfbe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbf57ff945d7df71dbba6260693954dd4869d8c75ca1bbadfa40e234db6780bebb94d9416f1f61b35d598e0380926540d84201a632587b0d1c34f5812aab4bbf
|
|
7
|
+
data.tar.gz: 7df2648c52b152aa3b24e12f2a3005e34079d8fad3804888ea96d2a59e12f02ff14496e649a87d6a1b8e3c084a9dbb81b99ff864d94ac21cddd3b2d52949b491
|
data/README.md
CHANGED
|
@@ -26,11 +26,26 @@ https://developers.google.com/maps/documentation/geolocation/get-api-key
|
|
|
26
26
|
|
|
27
27
|
### location
|
|
28
28
|
|
|
29
|
+
Ruby code
|
|
30
|
+
|
|
29
31
|
```ruby
|
|
30
32
|
require "geo_stalker"
|
|
31
33
|
|
|
32
|
-
stalker = GeoStalker::Locator.new(
|
|
33
|
-
|
|
34
|
+
stalker = GeoStalker::Locator.new(your_key)
|
|
35
|
+
stalker.location # {"location"=>{"lat"=>29.4222384, "lng"=>-98.4830782}, "accuracy"=>48.0}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Command line
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
GOOGLE_API_KEY=your_key geo_stalker | jq
|
|
42
|
+
{
|
|
43
|
+
"location": {
|
|
44
|
+
"lat": 29.4221035,
|
|
45
|
+
"lng": -98.48321059999999
|
|
46
|
+
},
|
|
47
|
+
"accuracy": 37
|
|
48
|
+
}
|
|
34
49
|
```
|
|
35
50
|
|
|
36
51
|
## Development
|
data/lib/geo_stalker/locator.rb
CHANGED
data/lib/geo_stalker/version.rb
CHANGED