need a program that takes the latitude and longitude and changes each time the location changes

To achieve this, you can create a program that utilizes a Geolocation API. There are several options available, such as Google Maps Geocoding API or OpenStreetMap Nominatim API. These APIs will provide you with latitude and longitude coordinates based on the location you provide.

Here's a general outline of how you can implement it using Python:

1. Choose a Geolocation API provider and sign up for an API key.

2. Install the necessary libraries for making HTTP requests and handling JSON responses. You can use the `requests` library in Python.

3. Write a function that takes the location as input and makes an API request to retrieve the latitude and longitude.

For example, using the Google Maps Geocoding API:
```python
import requests

def get_coordinates(location):
api_key = "YOUR_API_KEY"
url = f"https://maps.googleapis.com/maps/api/geocode/json?address={location}&key={api_key}"
response = requests.get(url).json()

if response['status'] == 'OK':
result = response['results'][0]
lat = result['geometry']['location']['lat']
lng = result['geometry']['location']['lng']
return lat, lng
else:
return None # Handle error case
```

4. Set up a loop to continuously check for location changes.

```python
current_location = "Initial Location" # Initialize with starting location

while True:
new_location = fetch_current_location() # Code to get the latest location data

if new_location != current_location:
current_location = new_location
lat, lng = get_coordinates(current_location)
print(f"Latitude: {lat}, Longitude: {lng}")

# Add a delay if needed before fetching the location again to avoid making too many requests in a short period
```

5. Replace `fetch_current_location()` with the appropriate code to get the latest location data from whichever source you are using, such as a GPS module, a mobile device's location API, or any other method suitable for your specific use case.

Remember, you will need to replace "YOUR_API_KEY" with the actual API key obtained from your chosen Geolocation API provider. Additionally, you may need to adjust the code based on the API documentation and response structure of the provider you select.

Make sure to handle errors appropriately, such as when the API request fails or when the provided location is invalid.