Small improvements to places recognition

New word ‘near’. Merged two if-statements. Minfied.