a program for querying coordinates