Question

I am in the middle of designing a web form for German and French users. Within this form, the users would have to type street names several times.

I want to minimize the annoyance to the user, and offer autocomplete feature based on common French and German street names.

Any idea where I can a royalty-free list?

Thanks a bunch,

Adam

Was it helpful?

Solution

Would your users have to type the same street name multiple times? Because you could easily prevent this by coding something that prefilled the fields.

Another option could be to use your user database as a resource. Query it for all the available street names entered by your existing users and use that to generate suggestions. Of course this would only work if you have a considerable number of users.

[EDIT] You could have a look at OpenStreetMap with their Planet.osm dumbs (or have a look here for a dump containing data for just Europe). That is basically the OSM database with all the map information they have, including street names. It's all in an XML format and streets seem to be stored as Ways. There are tools (i.e. Osmosis) to extract the data and put it into a database, or you could write something to plough through the data and filter out the street names for your database.

OTHER TIPS

Start with http://en.wikipedia.org/wiki/Category:Streets_in_Germany and http://en.wikipedia.org/wiki/Category:Streets_in_France. You may want to verify the Wikipedia copyright isn't more protective than would be suitable for your needs.

Edit (merged from my own comment): Of course, to answer the "programmatically" part of your question: figure out how to spider and scrape those Wikipedia category pages. The polite thing to do would be to cache it, rather than hitting it every time you need to get the street list; refreshing once every month or so should be sufficient, since the information is unlikely to change significantly.

You could start by pulling names via Google API (just find e.g. lat/long outer bounds - of Paris and go to the center) - but since Google limits API use, it would probably take very long to do it.

I had once contacted City of Bratislava about the street names list and they sent it to me as XLS. Maybe you could try doing that for your preferred cities.

I like Tom van Enckevort's suggestion, but I would be a little more specific that just looking inside the Planet.osm links, because most of them require the usage of some tool to deal with the supported formats (pbf, osm xml etc)

In fact, take a look at the following link http://download.gisgraphy.com/openstreetmap/

The files there are all in .txt format and if it's only the street names that you want to use, just extract the second field (name) and you are done.

As an fyi, I didn't have any use for the French files in my project, but mining the German files resulted (after normalization) in a little more than 380K unique entries (~6 MB in size)

@dusoft might be onto something - maybe someone at a government level can help? I don't think that a simple list of street names cannot be copyrighted, nor any royalties be charged. If that is the case, maybe you could even scrape some mapping data from something like a TomTom?

The "Deutsche Post" offers a list with all street names in Germany:
http://www.deutschepost.de/dpag?xmlFile=link1015590_3877

They don't mention the price, but I reckon it's not for free.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top