I'm trying to figure out a decent way to parse keywords from location words within a single string before or after geocoding the string or part of the string. For example: "iphone battery accessories toronto, on", or "2010 volvo 90210", or "circus texas", etc.
It turns out I can pass the entire string to most geocoders and get a valid location match. So passing "iphone battery accessories toronto, on" to the geocoder will correctly match "Toronto, ON, Canada" and return the proper lat and lng values. However I still need to pull the location match out of the query.
Another way to manage this would be to check a local database for location matches within the string to split it up.
Any experience with is? Recommendations?