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
Post a Comment