Is there a way to feed the Simulator from external program or using an API ?

For example, set the GPS coordinate with an external program (rather than using the UI).

The idea is to be able to do some test automations.

I can see that Simulator is listening on ports 1234 and 42877.

Jean