Getting complete information from latitude and longitude values
In this recipe, you will learn how to find out the complete details of a location whose longitude and latitude values you know. This process of converting a point location, that is, latitude and longitude values, into a readable address (the place name, city, country name, and so on) is known as reverse geocoding.
The application will prompt you to enter longitude and latitude values, and then it will display the matching location name, city, country, and postal code for that location.
How to do it…
Let's create an application based on the Dialog without Buttons
template by performing the following steps:
- Add seven
QLabel
, twoQLineEdit
, and aQPushButton
widget to the form by dragging and dropping sevenLabel
, twoLine Edit
, and aPush Button
widget onto the form. - Set the
text
property of the firstLabel
widget toFind out the Location, City, Country and Postal Code
, that of the secondLabel
widget toEnter Longitude
, and that of...