tim / erlang-geoplanet
- Source
- Commits
- Network (0)
- Issues (0)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
Emakefile | ||
| |
License.txt | ||
| |
Makefile | ||
| |
README.txt | ||
| |
src/ |
README.txt
An Erlang wrapper around the Yahoo! GeoPlanet API.
Quick start:
$ make
...
$ erl -pa ebin -pa path/to/erlang-rfc4627/ebin
...
1> geoplanet:start("...Your Yahoo! GeoPlanet Application ID...").
ok
2> geoplanet_test:run().
..........
ok
3> {ok, Data} = geoplanet:places("London").
...
4> geoplanet_json:find("places/place[0]/country", Data).
<<"United Kingdom">>
Use geoplanet_server:request/4 for more complex queries.
Depends on erlang-rfc4627 (http://www.lshift.net/~tonyg/erlang-rfc4627/)
for decoding JSON responses.

