def _lat_lons_from_geojson(s):
if len(s) >= <NUM_LIT:2> and isinstance(s[<NUM_LIT:0>], _number) and isinstance(s[<NUM_LIT:0>], _number):<EOL><INDENT>lat, lon = s[<NUM_LIT:1>], s[<NUM_LIT:0>]<EOL>return [(lat, lon)]<EOL><DEDENT>else:<EOL><INDENT>return [lat_lon for sub in s for lat_lon in _lat_lons_from_geojson(sub)]<EOL><DEDENT>
Return a latitude-longitude pairs from nested GeoJSON coordinates.

    GeoJSON coordinates are always stored in (longitude, latitude) order.