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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
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 MVEDeveloper & 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
Dinesh KumarAuthor Commented:
I thank you to both.

Are these webservices applicable to every country's locations?
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

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?
Scott Fell, EE MVEDeveloper & 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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dinesh KumarAuthor Commented:
Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.