location.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. BI and PM: Mobile
  5. (C) Copyright IBM Corp. 2007, 2012
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <location>
  9. <!-- All providers with active='true' will be used, in sequence, to reverse-geocode WGS84 coordinates. -->
  10. <file active="false" filename="test1.data">
  11. <regex latitude='1' longitude='2'>
  12. ^(.*);(.*);(.*)$
  13. <capture-group index='3' name='name'/>
  14. </regex>
  15. </file>
  16. <!-- CA.zip from geonames.org. -->
  17. <file active="false" filename="CA_PPL.txt">
  18. <!--
  19. 1 geonameid : integer id of record in geonames database
  20. 2 name : name of geographical point (utf8) varchar(200)
  21. 3 asciiname : name of geographical point in plain ascii characters, varchar(200)
  22. 4 alternatenames : alternatenames, comma separated varchar(4000)
  23. 5 latitude : latitude in decimal degrees (wgs84)
  24. 6 longitude : longitude in decimal degrees (wgs84)
  25. 7 feature class : see http://www.geonames.org/export/codes.html, char(1)
  26. 8 feature code : see http://www.geonames.org/export/codes.html, varchar(10)
  27. 9 country code : ISO-3166 2-letter country code, 2 characters
  28. 10 cc2 : alternate country codes, comma separated, ISO-3166 2-letter country code, 60 characters
  29. 11 admin1 code : fipscode (subject to change to iso code), isocode for the us and ch, see file admin1Codes.txt for display names of this code; varchar(20)
  30. 12 admin2 code : code for the second administrative division, a county in the US, see file admin2Codes.txt; varchar(80)
  31. 13 admin3 code : code for third level administrative division, varchar(20)
  32. 14 admin4 code : code for fourth level administrative division, varchar(20)
  33. 15 population : integer
  34. 16 elevation : in meters, integer
  35. 17 gtopo30 : average elevation of 30'x30' (ca 900mx900m) area in meters, integer
  36. 18 timezone : the timezone id (see file timeZone.txt)
  37. 19 modification date : date of last modification in yyyy-MM-dd format
  38. -->
  39. <regex latitude='2' longitude='3'>
  40. ^[^\t]*\t([^\t]*)\t[^\t]*\t[^\t]*\t([^\t]*)\t([^\t]*)\tP\tPPL[ACG]?\t([^\t]*)\t
  41. <capture-group index='1' name="city"/>
  42. <capture-group index='4' name="country"/>
  43. </regex>
  44. </file>
  45. </location>