Returns the number of vertices in a geospatial data record

Works with the following datatypes:

This function works with 2.1 endpoint(s). What does this mean? »

The num_points(...) function returns the number of vertices that a given geometry is comprised of. For example, a rectangle would contain four vertices. For example, to get the city with the most vertices in the Tiger Line “Places” dataset:$select=name,num_points(the_geom)&$order=num_points(the_geom) DESC&$limit=1

This can be very useful for understanding the complexity of the geometries in a given dataset.