Click here to Skip to main content
15,886,640 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
How do i get my exact location, latitude and longitude in windows C# project I have already tried many API's, but all are showing only the city name not the current exact address...HELP ME..!!

Infact, all the API's provide only the city name and latitude,longitude..but not the exact address....i Want the exact address for my ATM project

[Edit - Tidied up question title and see also ..]
http://stackoverflow.com/q/21402803/133321[^]
Posted
Updated 28-Jan-14 2:31am
v2
Comments
BillWoodruff 28-Jan-14 7:12am    
There's a good reason why your question on StackOverFlow is "frozen:" you haven't answered the basic question asked about whether you are wanting an address from lat/long co-ordinates, or lat/long co-ordinates from an address.

Unless you make your question clear, how can anyone assist you ?

http://stackoverflow.com/q/21402803/133321

1 solution

You can't.

There is no link between your location as reported from your IP address and the actual physical location you are at - or if there is, it is only recorded within the database of your ISP. They are very unlikely to give you any further info without a court order, partly because it would breach various national privacy laws, and partly to prevent you as a potential competitor knowing their customer base.

The location you get from an IP lookup is the address of the local ISP access point. In most cases this is not even fixed, and will get issued anew each time the router connects, so the physical location could have changed each time you request the information!

The only way to localise a user is to use an on board GPS device or similar: which most windows installations do not have.
 
Share this answer
 
Comments
Kornfeld Eliyahu Peter 28-Jan-14 8:48am    
Wow! I was sure I'm sitting in Antwerp, Belgium!!! )-:
OriginalGriff 28-Jan-14 8:55am    
I know the feeling - there are times when my office miraculously moves itself to Germany... :sigh:
BillWoodruff 28-Jan-14 17:17pm    
mmmm ... the OP does not mention IP address anywhere, but if your psychic powers told you he's asking about using IP address, mo' power to ye ! Can we assume that "ATM" project is not something relating to Feldenkrais' "Awareness Through Movement" exercises ?
OriginalGriff 28-Jan-14 17:32pm    
:laugh:
He wants to get lat and long in a windows app, but all he can get is city.
Which means he doesn't have access to GPS data, or even triangulation from cell phone masts, both of which are a whole lot more accurate than that.
City he can get; which leave us with some location info available, which can be got using some API method.
Elimination says it's almost certain to be from internet IP as being pretty much the only method left to him, and the one that only ever give you city name at best, unless you are in a very large city.

That's my chain of thought, anyway.

OT: How are you this evening, my friend? Good, I hope?
BillWoodruff 28-Jan-14 18:19pm    
6:17am here in the Land of Smiles, and I'm running on one engine since 4am, but no complaints even if sweet sleep eludes me :) cheers, Bill

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