<p></p>
<p>Flex documentation mentions method <code>get_bbox</code> as one of the functions provided by the object parameter table:</p>
<p><code> get_bbox(): Get the bounding box of the current node or way.</code></p>
<p>Unfortunately, there's no indication about the return type / signature of this function. Also, here's no example in flex-config/ * to demo its usage.</p>
<p>Based on the the C++ source code I concluded that I need to use something along the lines of  <code>local lon,lat,dummy,dummy = object.get_bbox()</code> to get a node's lat/lon values.</p>
<p><a href="https://github.com/openstreetmap/osm2pgsql/blob/487bac707f2444f83e237272ea69ffe76fbcd3f1/src/output-flex.cpp#L527-L543">https://github.com/openstreetmap/osm2pgsql/blob/487bac707f2444f83e237272ea69ffe76fbcd3f1/src/output-flex.cpp#L527-L543</a>,</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/1178">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353T75JHFDQS6HCDUKYLRSTITLANCNFSM4NGTOTHA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353SUR3SWGGLSIJXKFZLRSTITLA5CNFSM4NGTOTHKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4JIXSXHA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/1178",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1178",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>