update maps api, moon phase calculation