Home Forums Plugin Support WP User Frontend Pro adress from google map

This topic is: not resolved

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Sekander Badsha 4 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #28941

    Post count: 6


    I have a list of posts with googlemap showing with the code that extract the lat and long :
    <?php echo get_post_meta( $post->ID, 'location', true ); ?>

    But what I need is showing the adress bellow the map, is there a code to display it ?
    I've seen this topic but it didnt show any answer :



    Sekander Badsha
    Post count: 2067

    Hello Olivier,

    We only get the coordinates in the database. So if you call the data via get_post_meta you will only get the coordinates. But if you use the Google Maps API, you can echo the coordinates inside that to get the name of the place.

    Here is doc you can read https://developers.google.com/maps/documentation/geocoding/

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘adress from google map’ is closed to new replies.