Added type field to location api

@rowenaluk @czue 
I had to add type in location api.