I retreived europe.osm database with osm2pgsql. And now I try to exploit it. Is there a way to get the state, country, region, from a way like a town hamlet locality or city?
edit
http://wiki.openstreetmap.org/wiki/Nominatim
https://github.com/twain47/Nominatim
databases osm format :
http://download.geofabrik.de/osm/europe/
here is the database schema :
http://wiki.openstreetmap.org/wiki/Osm2pgsql/schema