[Geocoding] properly formatting addresses

Ed Freyfogle freyfogle at gmail.com
Mon Oct 6 14:11:22 UTC 2014


Hi everyone,

I'm one of the people behind the OpenCage geocoder:
http://geocoder.opencagedata.com

We aggregate a bunch of different geocoders, open and closed, including
nominatim.

One of the challenges we face is upon getting a response we then need to
format it to make it look "good" to the consumer. This is non-trivial as
people in different parts of the world want their addresses to look
different.

Our solution is of course crowdsourcing. We've opensourced a set of
templates that we're using
to do the formatting: https://github.com/lokku/address-formatting

The idea is that the templates themselves are programming language
independent.

We do most of our work in perl, we've also opensourced our template
processor
https://github.com/lokku/perl-Geo-Address-Formatter

I blogged a bit about our motivation behind all this
http://blog.opencagedata.com/post/99059889253/good-looking-addresses-solving-the-berlin-berlin

Hopefully others will find this useful as well, we welcome all feedback

cheers,
Ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/geocoding/attachments/20141006/2a5a7e79/attachment.html>


More information about the Geocoding mailing list