Using the location API