To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorGeoencoding
As a user
I want to know the country code of localtion
in order to improve my geography knowledge
- Scenarios
-
- Retrieve the geolocation with city name given and without sensor
- Retrieve zero results if city not exist
- Incorrect requests
- Retrieve the geolocation with city name misspelling
- Retrieve the geolocation with city name given and without sensor
-
- Given
- a city name
- When
- I request the geoencoding of the city
- Then
- I obtain the city name with the country_code
Examples: city country_code Barcelona CAT Paris FR San+Francisco US - Retrieve zero results if city not exist
-
- Given
- a city name
- When
- I request the geoencoding of the city
- Then
- I obtain a response with status "ZERO_RESULTS"
Examples: city sdfjksd me llamo pepito FIB FOREVER - Incorrect requests
-
- Given
- a city name
- When
- I request the geoencoding without sensor_parameter or city
- Then
- I obtain an Error_Code
Examples: city sensor_parameter Error_Code Barcelona null 404 null False 404 Barcelona testing 404 - Retrieve the geolocation with city name misspelling
-
- Given
- a city name
- When
- I request the geoencoding of the city
- Then
- I obtain the city name with the country_code
Examples: city country_code Madrit ES Madril ES Barcelon ES
Last published over 5 years ago by [email protected]