'Return a Location object from the JSON-response dictionary.
:param  location: The dictionary describing the location.
:type   location: ``dict``
:return: Location object
:rtype: :class:`NodeLocation`'

def _to_node_location(self, location):

    return NodeLocation(id=location['id'], name=location['name'], country=location['name'].split('-')[0], driver=self)
