Access Lat and Lon in Detail Page

This topic contains 3 replies, has 3 voices, and was last updated by  Scott Jennings 5 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #459245

    Scott Jennings
    Full Member
    Post count: 55

    WP 5
    GD V2

    How can I access the Latitude and Longitude of the listing on the Detail page? I have an API to display a nautical chart but I need lat and lon to use it. TIA

    #459258

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    we have a list of enhancements we will be looking at as soon as all of the addons have been made compatible with V2 and this fits in with our goals to make all the listing data available. The developers have been alerted and will post back here with an update.

    #459273

    Kiran
    Moderator
    Post count: 7069

    Hello Scott,

    Try following code to access latitude & longitude on detail page.

    
    
    global $gd_post;
    $latitude = $gd_post->latitude;
    $longitude = $gd_post->longitude;

    Kiran

    #459324

    Scott Jennings
    Full Member
    Post count: 55

    Thanks Kiran! Just what I was looking for.

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket