Need help with Direct & Indirect objects (if any in the sentence below):

These open spaces add variety to a city. Is the Direct object Variety & the Indirect object City?

Thanks for your help.
Because add is not a verb of giving, showing, or communicating, the inanimate object of to so often seen with it is not generally considered an indirect object.

variety is indeed the direct object, but to a city is an ordinary prepositional phrase that does not rise to the level of being an indirect object.

I rode the train to Los Angeles is another example where the to-phrase does not count as an indirect object.

These open spaces add variety to a city.

"Variety" would be the direct object, because it is what is being added.

The indirect object would be "city," because it is to what/whom "variety" is being added to.

I hope that makes sense for you and explains the difference between direct and indirect objects is.

If that doesn't help, I'll post the dictionary definitions of "direct object" and "indirect object."

According to the dictionary, a direct object is, "a word or phrase denoting the goal or the result of the action of a verb." An indirect object is, "a grammatical object representing the secondary goal of the action of its verb (as her in 'I gave her the book')"

Source: The Merriam Webster On-line Dictionary