Skip to content
Snippets Groups Projects
Commit 2059ba93 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: change access to GeoName web-service

parent bdf4c48f
No related branches found
No related tags found
No related merge requests found
...@@ -104,10 +104,11 @@ void CoordinateToName::DoEvaluate() ...@@ -104,10 +104,11 @@ void CoordinateToName::DoEvaluate()
if (Utils::IsLonLatValid(m_Lon, m_Lat)) if (Utils::IsLonLatValid(m_Lon, m_Lat))
{ {
std::ostringstream urlStream; std::ostringstream urlStream;
urlStream << "http://ws.geonames.org/findNearbyPlaceName?lat="; urlStream << "http://api.geonames.org/findNearbyPlaceName?lat=";
urlStream << m_Lat; urlStream << m_Lat;
urlStream << "&lng="; urlStream << "&lng=";
urlStream << m_Lon; urlStream << m_Lon;
urlStream << "&username=otbteam";
otbMsgDevMacro("CoordinateToName: retrieve url " << urlStream.str()); otbMsgDevMacro("CoordinateToName: retrieve url " << urlStream.str());
try try
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment