This is one of those “sounds easy but is actually really complicated” things. See Mark’s posts here and here. Ultimately you’ll probably be pointed to LocationTextExtractionStrategy
. Good luck! If you actually find out how to do it post it here, there several people wondering exactly what you are wondering!