Refactoring LocationParser so it doesn't repeat the http request on each
call