Google's Street View project to map the world by taking pictures from passing cars has ignited a minor uproar in northern Thailand where villagers detained a driver and made him swear on a Buddha statue that he was not surveying the area for an unwanted dam project.

The internet company has confirmed the incident in Sa-eab village in Phrae province, in which about 20 residents blocked a Google camera-equipped car. Google's project takes photos to accompany its Google Earth map program.

The Manager newspaper reported that the villagers took the vehicle's driver to a local office to quiz him, then to a temple where they made him swear on a statue of Buddha that he was not working for the dam project.

The Prachatai news website said the villagers released the driver and later apologised to him and to Google.

Sa-eab village, 385 miles (615km) north of Bangkok, is known for its long-running dam protests by villagers and environmental groups.

"[We] apologize to the official, to Google, as well as to the Thai people throughout the nation and to the citizens of the world," the villagers' representatives wrote. They explained that they were "extremely worried and there had been so many repeated cases that convinced the villagers to believe someone was trying to survey the area in disguise".

Google Street View has run into problems in some other countries where there are concerns it captures too much information that should be private. The project's technology also scoops up Wi-Fi radio signals. Britain's data regulator in June ordered the company to delete personal data it gathered that way or face a contempt of court action.

"Embarking on new projects, we sometimes encounter unexpected challenges, and Street View has been no exception," said Google spokesman Taj Meadows, adding that "Street View abides by Thailand's local laws and only features imagery taken on public property".

In 2011 Thailand's tourism authority partnered with Google to launch a tourism promotion initiative involving images of streets and top attractions in the country's major cities.

Thailand was the world's 35th country to have Street View available.