Refactor and Add specs for google static map builder