Implemented location metadata support.

Closes #287.