This example is an example of locator.
What is locator: - input: address - output: coordinates
so you can still inspire by the example, you could just ignore the locator part of code, and create a gemometry even a graphic from your coordinate, (take care of coordinate systeme) and add it on the map