Added type field to location api

@rowenaluk @czue