0

There is a website that support shops information like food,drink,golf,spa. This websites provide information on Thailand, Hongkong, Singapore and Cambodia. If a user from Thailand connect this website. The default menu will be set to Thailand. If a user from Hongkong use this website. We will set default menu to Hongkong. If a user from others country that is not in the list. the default will be set to Thailand.

What is the best way to do this.

Sarawut Positwinyu
  • 4,974
  • 15
  • 54
  • 80

2 Answers2

2

I use Google Loader https://developers.google.com/loader/.

Similiar question here on SO. The accepted answer even has an example page.

Community
  • 1
  • 1
Pete
  • 10,651
  • 9
  • 52
  • 74
2

You can get the location of incoming request by the following service. Which will give you country and city.

http://api.hostip.info/get_html.php?ip=207.46.197.32

There is a open source which will do the same for you, please have a look here

If you need more then visit here

Community
  • 1
  • 1
Adil
  • 146,340
  • 25
  • 209
  • 204