detecting tyoe of place