Skip to Content

Need to get Latitude & Longitude based on address !

Hi all,

My requirement is to delevop a report. The report will have an ALV table with supplier information. Along with that, the lattitude & longitude of the supplier's address needs to be displayed.

I tried using the method ENHANCE_ADDRESSES of class CL_ADDRESS_ENHANCER. But i am able to get the details at country level only.

But i Need the co-ordinates at street level. Any way of doing that ??

Thanks,

Karthik

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on May 28, 2014 at 12:03 PM

    Look at google maps web services (The Google Geocoding API)

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

    • HI, That worked. But people feel that i need to use HTTPS insted of HTTP. If i use HTTPS in the existing code, i get a http_communication_failure. Is there any way ato use https ?

      ALso learnt from some of the blogs that, if we need to make HTTPS calls, we have to install the digital certificate from google using STRUST tcode. Else we woluld always get http_communication_failure.

      An idea would be helpful

      Thanks,

      Karthik

  • Posted on May 28, 2014 at 11:55 AM

    This is called "geocoding" and you would need to use some third-party service provider (addresses database + their geolocation).

    You can make it from scratch. I would go probably Google Geocoding API way... but there are more (Yahoo etc..).

    Or give a try some existing projects. For example this looks interesting:

    Home | ZGEOCODE Project | Assembla

    😊

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 28, 2014 at 10:36 AM

    Hi,

    there is a module for this, have a look to the tables starting with GEO*

    for examples : GEOCITY give for a city the longitude latitude.

    You could also find a table that give for a postal code the longitude latitude.

    There is a group in SCN speak about that, and how to link with google maps.

    There is also a function that give you the distance between two points, but it's direct distance, not street distance

    regards

    Fred

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 28, 2014 at 11:26 AM

    Karthikeyan,

    Not exactly the kind of info you are looking for, but may be this can give you some lead.

    TIMEZONE for a Country code will be maintained in the table GEOT005.

    Country Code will be maintained in T005

    I think it needs to be checked with the Functional Consultant whether required entries were maintained for all the Country Codes (SPRO).

    K.Kiran.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.