event.longitude

Type Number
Event mapLocation
Revision 2017.3060
Keywords mapLocation, longitude

Overview

The longitude in degrees of the desired location.

Example

local function mapLocationHandler( event )
    -- handle mapLocation event here
    if event.isError then
        print( "Error: " .. event.errorMessage )
    else
        print( "The specified string is at: " .. event.latitude .. ", " .. event.longitude )
    end
end

myMap:requestLocation( "1900 Embarcadero Road, Palo Alto, CA", mapLocationHandler )