latitude and longitude


If I provide address, state and country, can I get lat/lon from any webservice.

e.g address is 67, Peremohy Ave, Kiev

State is Kiev

Country is Ukraine

If there is already built up any  application that will work :)

if you can provide the google api name to achieve this task, please let me know.

Dinesh KumarAsked:
Who is Participating?
Scott Fell, EE MVEConnect With a Mentor Developer & EE ModeratorCommented:
You are just getting the tip of the iceberg as to how complex this is on the inside.    If you have a random database of 10,000 addresses, it is safe to say you can match about 7,000 with at least 90% accuracy to an "good" address.  You can't match a lat/lon until you have a good address.  From your matched addresses you will probably be able to get a good lat/lon from 70% to 80% of your good addresses.

In other words, if you can get a good match from about 6,000 out of 10,000, you are doing pretty good.  If you are getting 8,000 to 9,000 good lat/lon's out of 10K addresses, you are doing excellent.  I wouldn't rack my brain beyond that.  Also, you will probably find better match's in some countries over others.

In the case of airports, each will have a lat / lon as you would expect for navigation.  The key is getting the correct address.  When matching address, you typically leave off PO Box and only need the street and address.  It does look like the actual airport address that aligns with a point on a map is, "CPT Cape Town 7490, South Africa".  

There is software available that can standardize addresses at least in the US.  Europe looks like this is a possibility and I found this for South Africa

Address verification will help increase your lat/lon match rate.  It could possibly help convert  the address you have for the airport to what the postal service actually uses and that will convert to a lat/lon.
Julian HansenConnect With a Mentor Commented:
You should be able to do this with the Google Maps GeoCoding service.

More information on this page

The following link is the documentation for Google's GeoCoding service. It includes sample source code on how to get lattitude and longitude information from an address.
Scott Fell, EE MVEConnect With a Mentor Developer & EE ModeratorCommented:
Not too long ago I had to pay a lot of money for this stuff.  Now there are plenty of places to do this free
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Dinesh KumarAuthor Commented:
I thank you to both.

Are these webservices applicable to every country's locations?
Julian HansenCommented:
Are these webservices applicable to every country's locations?

I doubt every address will be catered for but the majority of urban and suburban ones should.

For the Google one - try typing an address into search box and see if / how it resolves it. If Google maps resolves it then the Google geocoder service should.
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
>I doubt every address will be catered for

Good point julianH.  Sometimes you will get back a quality score that lets you know how the point was matched up.  At least in the use you might get something like; "exact match", "zip4",  "zip", "state".   Where exact match is the rooftop level, zip4 means the point is within the same street on the same block, zip or state would be the centroid of the zip/state.   A centroid is the population weighted center. In other words, if 80% of the population was in the southwest corder of the polygon, the centroid would be very close to to the south west corner of the polygon.

The take away is not every point is going to be at the rooftop level.  I have noticed some  api's do not return this info.  It would be interesting to know if they just don't return a point that is not at the rooftop level or return a point that is a representation of the address but not actually at the address.
Dinesh KumarAuthor Commented:
one connected question is:

Physical: 7 Tower Road
Airport Industria
CPT Intl Airport
Postal: PO Box 675
Eppingdust 7475

I was trying its lat/long but could not get it what can be the reason?
Dinesh KumarAuthor Commented:
Thank you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.