Click here to Skip to main content
15,795,793 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We are going to develop a web site in where we will store (sql server database) list of restaurants. Each restaurant will have name, address, zip code and telephone property. While a user wants to search nearest restaurant within 10 miles radius from him, System will find out list of restaurants within 10 miles from him and show ascending order.
1. How to find user location by IP address?
2. May we need to store extra information except the name, address, zip code and telephone?
3. How to calculate distance from user to departmental store?
4. Which technology we can use (google map etc)?

1. You can use geo-IP database for this, you can find many of them online, some are free, some are commercial. But this is very unreliable, especially if user is on a mobile network.
2. You'll need geo-coordinates of restaurants or a way to get coordinates from zip code.
3. There are few methods to do this:[^]
Share this answer
Ip address based work is not reliable as some ISP may show another city for a given IP address when it is physically in other city .

use the following links u may get useful info..........

Mapping with a GPS and C#

Best of luck........
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900