Neogps reading array of waypoints

I'm unable to figure out how to read the individual lat/long of the location_t array. So I have come here seeking advice on how to accomplish this.

Example:

NeoGPS::Location_t someWaypoints[] = 
{
              { 123456789L, -987654321 },
              { 123456789L, -987654321 },
              { 123456789L, -987654321 }
};

Trying to read out someWaypoints using a standard for loop does not work for me. Nor can I use serial print to display someWaypoints.

If you look in the library source this class provides the following accessor methods:

    int32_t  lat() const      { return _lat; };
    void     lat( int32_t l ) { _lat = l; };
    float    latF() const     { return ((float) lat()) * LOC_SCALE; };
    void     latF( float v )  { _lat = v / LOC_SCALE; };

    int32_t  lon() const { return _lon; };
    void     lon( int32_t l ) { _lon = l; };
    float    lonF() const     { return ((float) lon()) * LOC_SCALE; };
    void     lonF( float v )  { _lon = v / LOC_SCALE; };

So, for example, if you wanted to access the first element's latitude as an integer you would use:

someWaypoints[0].lat()

ToddL1962 thank you. That fixed the issue. I was looking at location.h but was overthinking it way to much.

Mad_Monkey_Project:
ToddL1962 thank you. That fixed the issue. I was looking at location.h but was overthinking it way to much.

Awesome!