Add location attribute

Fix https://github.com/pimatic/pimatic/issues/305 please test