'OSMNX Geometries from place using partial string match

I am trying to use OSMNX to find POIs based on partial string match. For example querying "Pizza" as name tag and expecting it to return all places having Pizza within the name string. However it only works when I use exact match like "Pizza Hut" for example. Kindly see below code.

import osmnx as ox
place = "Tampa, Florida"
tags = {"name": 'Pizza'}   # This will work if you changed the value to 'Pizza Hut'
gdf = ox.geometries_from_place(place, tags)
gdf.shape

Thanks for your advice



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source