google maps - How to get user destination by code in c# -


my project is: asp.net mvc4

idea next: have 3 google engines parse google response. engines google.com, google.ru, google.co.uk. have method user destination , display google engine based on destination, forexample if user russia make search google.ru, if user uk im work google.co.uk , others i'm use google.co.uk. may check programmatically?

you can use service find location of user using ip address.http://freegeoip.net/. can use api

http://freegeoip.net/json/115.113.234.46.

it returns json response follows.

{    "ip": "115.113.234.46",     "country_code": "in",     "country_name": "india",     "region_code": "",     "region_name": "",     "city": "",     "zipcode": "",     "latitude": 20,     "longitude": 77,     "metro_code": "",     "areacode": "" } 

then parse obtain location.but may not accurate always.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -