I am trying to enable Location Services for an individual app such as Weather.app etc via command line for High Sierra and Mojave macOS computers.
I was able to enable Location Services at the top level by using these two commands.
For High Sierra:
sudo -u _locationd defaults -currentHost write com.apple.locationd LocationServicesEnabled -int 1
For Mojave:
sudo defaults write /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd LocationServicesEnabled -int 1
However, I haven't figured out how to enable Location Services for an individual app yet and hope the community here can help me figure out. :)