GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
OpenGTS with Geonames  XML
Forum Index -> General
Author Message
jeremylf



Joined: 01/12/2015 20:29:59
Messages: 1
Offline

Hi,

I use OpenGTS (that is a open serive for gps: http://www.opengts.org/) And with this, i use Geonames for get the reverse-geocode tool. But i have a couple problems for configuration Geonames in OpenGTS.

OpenGTS ask me:

Code:
     <!-- =============================================
      === Geonames Reverse-Geocode Provider (default disabled)
      === - This reverse-geocoding uses the services provided by 'GeoNames.org' [http://www.geonames.org]
      === - Geonames also provides a commercial-use reverse-geocoding service that guarantees a faster and 
      ===   more reliable response time.  More information is available at the following link:
      ===      <a href="http://www.geonames.org/commercial-webservices.html" target="_blank" rel="nofollow">http://www.geonames.org/commercial-webservices.html</a>
      ===   Or contact them at the following email address:
      ===      <a href="mailto:services@geonames.org">services@geonames.org</a>
      ===   (Make sure you let them know you are using it with 'OpenGTS'!)
      -->
     <ReverseGeocodeProvider name="geonames" 
         active="${Domain.ReverseGeocodeProvider.active=true}"
         class="org.opengts.geocoder.geonames.GeoNames"
         key=""
         rtPropPrefix="Domain.ReverseGeocodeProvider.">
         <Property key="radiusKM">1.0</Property>
         <Property key="host">ws.geonames.org</Property>
         <Property key="postalFailover">false</Property> <!-- findNearbyPostalCodes -->
         <Property key="streetFailover">false</Property> <!-- findNearbyStreetsOSM -->
         <!--
          === - Set the following properties to appropriate values when purchasing the 
          ===   Geonames Commercial reverse-geocoding service.
          === - Geonames may also require a "username" for the free service as well.
          -->
         <Property key="failoverHost"></Property>
         <Property key="username">jeremylf</Property>
         <Property key="token"></Property>
         <Property key="alwaysFast">false</Property>
     </ReverseGeocodeProvider>
 



But when i use this i get this error:

Code:
 [INFO_|12/01 14:20:14|ServerSocketThread$ServerSessionThread.handleClientSession:2416] Remote client port: /190.113.210.130:40365 [to /192.168.1.69:31000]
 [INFO_|12/01 14:20:14|AbstractClientPacketHandler.printSessionStart:241] Begin TCP session (ClientSession_000): 190.113.210.130
 [INFO_|12/01 14:20:14|DMTPClientPacketHandler.sessionStarted:126] Begin Duplex communication: 190.113.210.130
 [INFO_|12/01 14:20:15|Transport.loadDeviceByTransportID:1666] Located Device 'fastpatrol/hyundai_31d4' (using default Device transport)
 [INFO_|12/01 14:20:22|DeviceID.<init>:172] [Tue Dec 01 14:20:22 COT 2015] Loaded device: fastpatrol/hyundai_31d4
 [INFO_|12/01 14:20:22|Nominatim.getAddressReverseGeocode:163] Address URL: <a href="http://open.mapquestapi.com/nominatim/v1/reverse?format=xml&limit=1&accept-language=es&addressdetails=1&zoom=18&email=&lat=-12.16024&lon=-76.98900" target="_blank" rel="nofollow">http://open.mapquestapi.com/nominatim/v1/reverse?format=xml&limit=1&accept-language=es&addressdetails=1&zoom=18&email=&lat=-12.16024&lon=-76.98900</a>
 [INFO_|12/01 14:20:22|ServerSocketThread$ServerSessionThread.handleClientSession:2524] TCP Resp Asc: $E0A0
 $E0FF
 [ERROR|12/01 14:20:22|Nominatim.GetXMLDocument:393] IO error: org.opengts.util.HTMLTools$HttpIOException: Server returned HTTP response code: 403 for URL: <a href="http://open.mapquestapi.com/nominatim/v1/reverse?format=xml&limit=1&accept-language=es&addressdetails=1&zoom=18&email=&lat=-12.16024&lon=-76.98900" target="_blank" rel="nofollow">http://open.mapquestapi.com/nominatim/v1/reverse?format=xml&limit=1&accept-language=es&addressdetails=1&zoom=18&email=&lat=-12.16024&lon=-76.98900</a>
 [INFO_|12/01 14:20:22|EventData.updateAddress:2747] No RG Address found [nominatim]: -12.16024/-76.98900
 [ERROR|12/01 14:20:24|ServerSocketThread$ServerSessionThread._readPacket:3367] ReadPacket error - java.net.SocketException: Connection reset
 [ERROR|12/01 14:20:24|ServerSocketThread$ServerSessionThread.handleClientSession:2623] Connection closed
 [INFO_|12/01 14:20:24|ServerSocketThread$ServerSessionThread.handleClientSession:2638] End of TCP session [10840 ms] (error/warning) ...
 [WARN_|12/01 14:20:24|DMTPClientPacketHandler.sessionTerminated:142] Session terminating with errors
 [INFO_|12/01 14:20:24|DMTPClientPacketHandler.sessionTerminated:159] End Duplex communication: 190.113.210.130
 



So, what i do wrong? My account in Geonames is arleady active for use free service.


Thanks! And sorry for my poor english
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team