UuleGrabber
Generates uule codes for google to allow localized searches.
Get the latest geo locations canonical names csv from: https://developers.google.com/adwords/api/docs/appendix/geotargeting
To use the generated uule code, apply it to the Google query url.
E.g. To search for pizza in Chicago:
https://www.google.com/search?q=pizza&uule=w+CAIQICIeQ2hpY2FnbyxJbGxpbm9pcyxVbml0ZWQgU3RhdGVzInstallation
-
Add
uule_grabberto your list of dependencies inmix.exs:
```elixir
def deps do
[{:uule_grabber, "~> 0.1.0"}]
end
```-
Ensure
uule_grabberis started before your application:
```elixir
def application do
[applications: [:uule_grabber]]
end
```Usage
UuleGrabber.uule_for_location("Chicago,Illinois,United States")
# "w+CAIQICIeQ2hpY2FnbyxJbGxpbm9pcyxVbml0ZWQgU3RhdGVz"Credits
Ported to Elixir based on the php implementation: https://github.com/512banque/uule-grabber