fix ccordinate type recognition

`self.record['coords']` is a list. By getting the first member, the `['type']` call works correctly