I have an entity city. For example, I run {city} = GeoNearest["City", GeoPosition[{41.8, -87.7}]] and then I got The entity "Chicago" as my output of city.
I want to have the string "Chicago" instead entity "Chicago" as output.
How can I convert city from entity to string?
Many thanks!


GeoNearestreturns a list, if you want to define your variable in one line, you can use this:city=First[GeoNearest["City", GeoPosition[{41.8, -87.7}]]]["Name"]– kickert Jul 02 '18 at 16:01