diff --git a/Code/IO/otbCoordinateToName.cxx b/Code/IO/otbCoordinateToName.cxx index c2c09fffbdb97bed0b3a7fc3fe2d7823e4870d8b..dc3ba28600fe64d3c4b147475484847cbd1b6cc4 100644 --- a/Code/IO/otbCoordinateToName.cxx +++ b/Code/IO/otbCoordinateToName.cxx @@ -104,10 +104,11 @@ void CoordinateToName::DoEvaluate() if (Utils::IsLonLatValid(m_Lon, m_Lat)) { std::ostringstream urlStream; - urlStream << "http://ws.geonames.org/findNearbyPlaceName?lat="; + urlStream << "http://api.geonames.org/findNearbyPlaceName?lat="; urlStream << m_Lat; urlStream << "&lng="; urlStream << m_Lon; + urlStream << "&username=otbteam"; otbMsgDevMacro("CoordinateToName: retrieve url " << urlStream.str()); try