zend multicountry redirect
===

hi currently i have an zend application on this location 
www.example.com/controller/action

but when a user visit from a specific country, how to detect their ip address and redirect then to this url
www.example.com/country/controller/action.. ?

the ip to country can be resolve using http://www.ipinfodb.com/ api

my current zend route is

    $router->addRoute(
        		'langindex',
        		new Zend_Controller_Router_Route('/:country/:controller/:action',
        				array('lang'=>'en',
        						'controller'=>'index',
        						'action'=>'index'
        						)
        		)
        );

how to pass the ipinfodb api so that :country will detect user locations?