Published PLZ Suche – an Erlang application that finds German zip codes (Postleitzahlen) geographically close to a given location.

Search by zip code:

ps_server:find_nearest(<<"01689">>, 10).

Or by coordinates:

ps_server:find_nearest({51.1835327936398, 13.5635350452693}, 10).

Both return a list of tuples sorted by distance:

[{Distance, {Plz, Ortsname, {Lat, Lon}}}, ...]

Uses geographical data from OpenGeoDB.

Source code on GitHub.