-
Notifications
You must be signed in to change notification settings - Fork 0
eyberg/erlreis
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
erlReis What is this? ------------- An erlang client to access the geonames api. Why are you doing this? ----------------------- this has started as a learning experiment for me with erlang it might change depending on my time and desire What's up with the name? ------------------------ Every software project has to have a decent name right? ;) Piri Reis was a Turkish admiral/cartographer who may have mapped Antartica three centuries before it was officially discovered. How does this work? ------------------- 1) start up erl [user@host] $ erl 2) compile our code Erlang (BEAM) emulator version 5.6.2 [source] [64-bit] [smp:2] [async-threads:0] [hipe] [kernel-poll:false] Eshell V5.6.2 (abort with ^G) 1> c(geonames.erl). 3) start the web server 2> inets:start(). ok 4) run our function 3> geonames:city_from_zip("65201"). {"HE","Wiesbaden"} 4> geonames:cities_by_bound("44.1", "-10", "-22.4", "55.2"). {"Mexico City"} So did you test any of this shit yet? ------------------------------------- We have 4 passing tests right now. I want to figure out howto make an automated test runner that could be integrated with autotest or something similar. If you would like to test the code you'll need to download eunit and throw a line similar to: code:add_pathz("/home/myuser/eunit/ebin"). in your ~/.erlang.
About
an erlang learning experiment through the geonames web api
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published