return 0 if no location params