Transfer incoming call based on gps position

Hello to all,

need help or guidelines for a project.

Working with asterisk need to transfer incoming call to sip client based on gps position.

What I have done so far :

I have a database (external) with sip id and gps position
Example
200,35.000,36.000
201,35.100,36.100
etc

I have a clients database with phone number and gps position
Example
302241020000,35.200,36.200
etc

What I need to do

Client with phone xxx will call asterisk pbx
Asterisk will pass callerid on external web server (example.com/callerid.php=xxx
php will request database and locate closer internal sip account. callerid.php will return internal sip id for example 200 (no need help for this part, already done)

pbx will redirect incoming call from xxx to 200.

Any idea how to do this or where to read for help?

Thank you
Kind regards,
Vangelis

You can use ChannelRedirect() or Goto()