break down functions

First step in getting https://github.com/joshtronic/php-googleplaces/issues/5