get Results City
@GET(value = "/search?" )
Fetches the results for a specific city using the Nominatim API.
Return
A list of JSON results from the Nominatim API (limited to 2). The first result is typically chosen, but if the second has a higher relevancy score (based on certain criteria, e.g., specific property value), it might be used instead.
Parameters
city
The name of the city (typically from the locality
property of AdministrativeUnitName
).
state
The state name (typically from the adminArea
property of AdministrativeUnitName
).
country
The country name (typically from the countryName
property of AdministrativeUnitName
).
polygon Geo JSON
specifies the API to return the geoJSON format
limit
limits the result of 2 to check if the second one is more relevant
format
specifies that will be a json return