A working example of how to extract a query from a location with a single input box.

This site is not affiliated with AOL or Yellowpages we are simply linking to them as an example !!

Add an open search implementation to your browser for AOL Yellowpages

/solr/rgeocoder/select?q=manhattan+bagels+long+island+ny&wt=phps&qt=dismax&hl=true
Array
(
    [id] => 10564
    [city] => Long Island City
    [statename] => New York
    [state] => NY
    [population] => 29506
    [density] => 2878
    [score] => 0.3949072
)
==========
Array
(
    [text] => Array
        (
            [0] => Long Island City
        )

    [city_srch] => Array
        (
            [0] => Long Island City
        )

    [state_srch] => Array
        (
            [0] => NY
        )

)
==========
text => Long Island
city_srch => Long Island
state_srch => NY
=====|manhattan bagels|====== Location: Long Island City, NY
Find manhattan bagels in AOL Yellowpages