use hash location type
Merge pull request #2 from GutenYe/location-type

use hash location type