Taking location from API to render maps