[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: HTTPAPI - Retreiving Geography Inforamtion



This is the code before:
NameData = CFICtyFulN(CityCode:StateCode:County4);
         // Build full address, city, county, state
         FullAddr = %Trim(Address) + ', ' + %Trim(RtnCityName) + ', ' +
                    %Trim(RtnCntyName) + ', ' + %Trim(RtnStateAbrv);
// Create a URL encoded query string for the API
       Enc = http_url_encoder_new();
       http_url_encoder_addvar(Enc: 'sensor': %Addr(sensor): %Len(sensor));
       http_url_encoder_addvar(Enc: 'address': %addr(FullAddr)+2 :
                                             %Len(FullAddr));
       LINK = XMLHELPER_getLink('GEOCODE');
       URL = %Trim(LINK) + '?' +
              http_url_encoder_getstr(Enc);
       // Free up the encoder storage
       http_url_encoder_free(Enc);

       // Send the XML request to Google
       http_get_xml(%Trim(URL):%paddr(StartOfElement):%paddr(EndOfElement):
                    *Null:Timeout);

       RETURN Result#;
---------------------------------------------------------------------------------------------------
We are trying to find the correct county name for the ones that are missing county name. I changed the values in FullAddr to only contain our City and State. I'm thinking that the hard coded 'address' on the 2nd http_url_endcoder_addvar statement might need a value telling the API that the value is 'City and State' not 'address'.
Internet Broswer Google map search result as an attachment.



-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Krebs
Sent: Thursday, October 31, 2013 1:25 PM
To: HTTPAPI and FTPAPI Projects
Subject: RE: HTTPAPI - Retreiving Geography Inforamtion

> My problem is I never get a result even when I can get a result using a browser for the same location.

Pat, it is really hard to advise you when we don't know what you are trying to do (some google thing you type in a browser that returns county?). We still don't know what part of the program you are having problems with.

Show us what works in the browser. Show us how you are doing it in your program. Then we can give you some suggestions.

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This e-mail and any files transmitted with it are confidential and solely for the use of the individual or entity to which they are addressed and intended. If you have received this e-mail in error, please notify the sender by return e-mail. If you are not the intended recipient, you may not read, copy, retain, print, disclose, or distribute this message or its contents to any other individual, for such actions may be unlawful. WARNING: We take certain precautions to prevent viruses, but we are not responsible for loss or damage arising from the use of this e-mail or attachments.
    <meta content="0; URL=/m?oi=nojs" http-equiv="refresh">

   [p]

   [1]Screen reader users: click here for plain HTML ____________________

   IFRAME: [2]vp

   [3]+Pat

   IFRAME: [4]gbsf

     * [5]+Pat
     * [6]Search
     * [7]YouTube
     * [8]Maps
     * [9]Play
     * [10]News
     * [11]Gmail
     * [12]Drive
     * [13]Calendar

   [14]More
     * [15]Translate
     * [16]Books
     * [17]Offers
     * [18]Wallet
     * [19]Shopping
     * [20]Blogger
     * [21]Finance
     * [22]Photos

   [23]Even more from Google
   Share
   [24]Pat Schooley Change photo
   Pat Schooley
   patjschooley@xxxxxxxxx
   [25]Account-[26]Privacy
   [27]View profile
   [28]Pat Schooley
   Pat Schooley
   patjschooley@xxxxxxxxx (default)
   [29]All your Google+ pages >
   [30]Add account
   [31]Sign out

   Hidden fields

   ____________________
   [32][transparent.png]

   (Submit)
   Loading...
   An error has occurred while loading the application. Please [33]reload
   the page.
   [34]Go to Google Maps Home
   [35]Get directions [36]My places
   [37]Print - [38]Link - Edit this place - Business owner? Owner-verified
   listing
   [maps-64-2.png] [39][transparent.png] [40][transparent.png]
   [transparent.png]
   [41]Map View
   Move the marker for...
   This report will be associated or displayed in connection with your
   profile.
   (Submit) Cancel
   (Submit) Save
   [lyrs=m@240000000,highlight-0x8891eb3897ad4187-0xbce2e8ff259e8f35@1-sty
   le-maps&hl=en&src=app&x=4254&y=6693&z=14&s=Galileo]
   [lyrs=m@240166122,highlight-0x8891eb3897ad4187-0xbce2e8ff259e8f35@1-sty
   le-maps&hl=en&src=app&x=4254&y=6694&z=14&s=]
   [lyrs=m@240000000&hl=en&src=app&x=4255&y=6693&z=14&s=Ga]
   [lyrs=m@240000000&hl=en&src=app&x=4255&y=6694&z=14&s=Gal]
   [lyrs=m@240000000,highlight-0x8891eb3897ad4187-0xbce2e8ff259e8f35@1-sty
   le-maps&hl=en&src=app&x=4253&y=6693&z=14&s=Gali]
   [lyrs=m@240000000,highlight-0x8891eb3897ad4187-0xbce2e8ff259e8f35@1-sty
   le-maps&hl=en&src=app&x=4253&y=6694&z=14&s=Galil]
   [lyrs=m@240000000&hl=en&src=app&x=4254&y=6692&z=14&s=Galile]
   [lyrs=m@240166122&hl=en&src=app&x=4254&y=6695&z=14&s=G]
   [lyrs=m@240000000&hl=en&src=app&x=4255&y=6692&z=14&s=G]
   [lyrs=m@240166122&hl=en&src=app&x=4255&y=6695&z=14&s=Gali]
   [lyrs=m@240164666&hl=en&src=app&x=4256&y=6693&z=14&s=Galil]
   [lyrs=m@240166476&hl=en&src=app&x=4253&y=6692&z=14&s=Gal]
   [lyrs=m@240000000&hl=en&src=app&x=4256&y=6694&z=14&s=Galile]
   [lyrs=m@240166122&hl=en&src=app&x=4253&y=6695&z=14&s=Galile]
   [lyrs=m@240147385&hl=en&src=app&x=4252&y=6693&z=14&s=G]
   [lyrs=m@240000000&hl=en&src=app&x=4252&y=6694&z=14&s=Ga]
   [lyrs=m@240107708&hl=en&src=app&x=4256&y=6692&z=14&s=Gali]
   [lyrs=m@240107180&hl=en&src=app&x=4256&y=6695&z=14&s=Galileo]
   [lyrs=m@240166476&hl=en&src=app&x=4252&y=6692&z=14&s=]
   [lyrs=m@240067279&hl=en&src=app&x=4252&y=6695&z=14&s=Gal]
   [shadow50.png] [dithshadow.gif]
   [red_markers_A_J2.png]
   Carolina, AL 36420
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   2 km
   2 mi
   [v=140&src=app&x=4255&y=6693&z=14&s=Ga] [transparent.png]
   [transparent.png] [transparent.png]
   Satellite
   Earth
   Traffic
   Photos
   Weather
   Terrain
   Webcams
   Bicycling
   [transparent.png] Trails
   [transparent.png] Dedicated lanes
   [transparent.png] Bicycle friendly roads
   Transit
   45°
   Labels
   English
   carolina, al
   [transparent.png]
   Exit
   [mapcontrols3d7.png]
   [42]Edit in Google Map Maker[43]Report a problem[44]Report a problem
   - Map data ©2013 Google -
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   2000 ft
   1 km
   [compass_spr2.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [mapcontrols3d7.png]
   [cb_scout_sprite_004.png]
   [cb_scout_sprite_004.png]
   [cb_scout_sprite_004.png]
   Drag me to the map!
   [cb_scout_sprite_004.png]
   [target_locking.gif]
   [cb_scout_sprite_004.png]
   [cb_scout_sprite_004.png]
   [cb_scout_sprite_004.png]
   [45][transparent.png]
   [46][transparent.png]
   ____________________
   [transparent.png] My Location
   Did you mean a different:
   [47][transparent.png]
   ____________________
   [transparent.png] My Location
   Did you mean a different:
   ____________________
   [transparent.png] My Location
   Did you mean a different:
   [48]Add Destination - [49]Show options [50]Hide options
   (Submit) Get Directions
   Note: [51]Public transit coverage may not be available in this area.
   Joplin, MO
   Not your current location? [52]Correct it v
   Put [53]your business on Google Maps
   Ad
   [54]See your ad here »
   Get the
   new Google Maps
   [55]Try it now
   [56]Report a problem - [57]Maps Labs - [58]Help
   Google Maps - ©2013 Google - [59]Terms of Use - [60]Privacy
   [61]Report a problem - [62]Maps Labs - [63]Help
   Google Maps - ©2013 Google - [64]Terms of Use - [65]Privacy
   [66]Report a problem - [67]Maps Labs - [68]Help
   Google Maps - ©2013 Google - [69]Terms of Use - [70]Privacy
   [71]Report a problem - [72]Maps Labs - [73]Help
   Google Maps - ©2013 Google - [74]Terms of Use - [75]Privacy
   A
   [transparent(1).png]
   Carolina, AL 36420
     * Directions
     * Search nearby
     * Save to map
     *
     * more [transparent(1).png]

   Ad
   [76]See your ad here »
   [77]Report a problem - [78]Maps Labs - [79]Help
   Google Maps - ©2013 Google - [80]Terms of Use - [81]Privacy
     * Directions
     * Search nearby
     * Save to map
     *
     * more [transparent.png]

   Get directions: To here - From here
   ____________________
   Go
   [82]« Back
   Search nearby:
   ____________________
   Search
   [83]« Back
   Save to My Maps
   Which map do you want to save to?
   (Submit) Save
   [84]« Back
   [85]Save to My Maps
   [86]Send
   Get directions: [87]To here - [88]From here[89]Get directions[90]Search
   nearby[91]Zoom here
    -

   To see all the details that are visible on the screen, use the "Print"
   link next to the map.

   h
   e
   l
   l
   o
   w
   o
   r
   l
   d

   [javascript]
   [_] [92]Hide all
   [_] [_]
   PhotosVideosWikipediaTransitWebcamsBuzzWeatherWatch the best videos
   recorded at a particular location on the map.View thousands of photos
   taken at locations around the world.Explore an area through
   geographically based Wikipedia articles.View imagery taken in the last
   hour from webcams around the world.See what's going on nearby.View
   weather conditions and forecasts around the world.Explore thousands of
   geotagged Wikipedia articles to learn more about the area you are
   looking at.View imagery taken in the last hour from over 6000 webcams
   worldwide.Hear what's going on nearby from your friends.
   of nearby results [93]« Prev [94]Next »
   [95][transparent.png]
   v [transparent(2).png] [transparent(2).png] more infoAddress: Station
   is accessible [transparent.png]
   Relocated from Relocated to  [96]Not true? [97]Show all edits [98]Not
   true?
   Placement on map is approximate
   [99]Get directions
   Area served:  -
   Category:
   Unverified listing
    1 review reviews1 review reviews1 review reviews1 review reviewsBe the
   first to reviewBe the first to reviewBe the first to review
   Photo
   [transparent.png]
   [100]Street view
   Photo
   Ad
   ZAGAT ·

   Carolina Ale House, Skyland Ridge Parkway, Raleigh, NC
   Carolina Ale House, Walnut Street, Cary, NC
   Carolina Ale House, South College Street, Charlotte, NC
   Carolina Ale House, South Main Street, Greenville, SC
   Carolina Ale House, Creekside Drive, Raleigh, NC

References

   Visible links
   1. https://maps.google.com/m?oi=screenreader
   2. file://localhost/tmp/carolina,%20al%20-%20Google%20Maps_files/maps.htm
   3. https://plus.google.com/u/0/?tab=lX
   4. file://localhost/tmp/carolina,%20al%20-%20Google%20Maps_files/frame.htm
   5. https://plus.google.com/u/0/?tab=lX
   6. http://www.google.com/search?hl=en&sa=N&tab=lw&ei=_adyUsrCBsmokQeM3YDAAw&ved=0CAUQqS4oAg
   7. https://www.youtube.com/results?sa=N&tab=l1
   8. https://maps.google.com/maps?hl=en&tab=ll
   9. https://play.google.com/?hl=en&sa=N&tab=l8
  10. https://news.google.com/nwshp?hl=en&tab=ln&ei=_adyUsrCBsmokQeM3YDAAw&ved=0CAkQqS4oBg
  11. https://mail.google.com/mail/?tab=lm
  12. https://drive.google.com/?tab=lo&authuser=0
  13. https://www.google.com/calendar?tab=lc
  14. http://www.google.com/intl/en/options/
  15. https://translate.google.com/?hl=en&sa=N&tab=lT
  16. http://books.google.com/bkshp?hl=en&sa=N&tab=lp&ei=_adyUsrCBsmokQeM3YDAAw&ved=0CA4QqS4oCw
  17. https://www.google.com/offers?utm_source=xsell&utm_medium=products&utm_campaign=sandbar&hl=en&tab=lG
  18. https://wallet.google.com/manage/?tab=la
  19. http://www.google.com/shopping?hl=en&sa=N&tab=lf&ei=_adyUsrCBsmokQeM3YDAAw&ved=0CBEQqS4oDg
  20. https://www.blogger.com/?tab=lj
  21. https://www.google.com/finance?sa=N&tab=le
  22. https://plus.google.com/u/0/photos?sa=N&tab=lq
  23. http://www.google.com/intl/en/options/
  24. https://plus.google.com/u/0/me?tab=lX
  25. https://www.google.com/settings
  26. http://www.google.com/intl/en/policies/
  27. https://plus.google.com/u/0/me?tab=lX
  28. http://maps.google.com/?authuser=0
  29. https://plus.google.com/u/0/dashboard
  30. https://accounts.google.com/AddSession?hl=en&continue=https://maps.google.com/%3Fmid%3D1383245821&service=local
  31. https://accounts.google.com/Logout?hl=en&continue=https://maps.google.com/%3Fmid%3D1383245821&service=local
  32. javascript:void(0)
  33. https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=carolina,+al&aq=&sll=37.095334,-94.508359&sspn=0.139935,0.302124&vpsrc=6&ie=UTF8&hq=&hnear=Carolina,+Covington,+Alabama&t=m&z=14&err=1
  34. https://maps.google.com/maps?ct=reset
  35. javascript:void(0)
  36. javascript:void(0)
  37. javascript:void(0)
  38. https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=carolina,+al&aq=&sll=37.095334,-94.508359&sspn=0.139935,0.302124&vpsrc=6&ie=UTF8&hq=&hnear=Carolina,+Covington,+Alabama&t=m&z=14
  39. https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=carolina,+al&aq=&sll=37.095334,-94.508359&sspn=0.139935,0.302124&vpsrc=6&ie=UTF8&hq=&hnear=Carolina,+Covington,+Alabama&t=m&z=14
  40. javascript:void(0);
  41. https://maps.google.com/
  42. https://www.google.com/mapmaker?ll=31.240729,-86.527735&spn=0.0375,0.075531&t=m&z=14&vpsrc=6&q=carolina,+al&hl=en&utm_medium=website&utm_campaign=relatedproducts_maps&utm_source=mapseditbutton_normal
  43. javascript:void(0)
  44. javascript:void(0)
  45. javascript:void(0)
  46. javascript:void(0)
  47. javascript:void(0)
  48. javascript:void(0)
  49. javascript:void(0)
  50. javascript:void(0)
  51. https://maps.google.com/transit
  52. javascript:void(0)
  53. http://www.google.com/local/add?hl=en&gl=us
  54. https://www.google.com/adwords/express/#utm_campaign=en&utm_medium=et&utm_source=us-en-et-awx-q411-maps-syah&utm_content=us-en-et-awx-q411-maps-syah
  55. https://maps.google.com/maps/about/explore/?status=invite
  56. javascript:void(0)
  57. javascript:void(0)
  58. http://maps.google.com/support?hl=en
  59. http://www.google.com/intl/en_us/help/terms_maps.html
  60. http://www.google.com/intl/en_us/policies/privacy/
  61. javascript:void(0)
  62. javascript:void(0)
  63. http://maps.google.com/support?hl=en
  64. http://www.google.com/intl/en_us/help/terms_maps.html
  65. https://maps.google.com/undefined
  66. javascript:void(0)
  67. javascript:void(0)
  68. http://maps.google.com/support?hl=en
  69. http://www.google.com/intl/en_us/help/terms_maps.html
  70. https://maps.google.com/undefined
  71. javascript:void(0)
  72. javascript:void(0)
  73. http://maps.google.com/support?hl=en
  74. http://www.google.com/intl/en_us/help/terms_maps.html
  75. https://maps.google.com/undefined
  76. https://www.google.com/adwords/express/#utm_campaign=en&utm_medium=et&utm_source=us-en-et-awx-q411-maps-syah&utm_content=us-en-et-awx-q411-maps-syah
  77. javascript:void(0)
  78. javascript:void(0)
  79. http://maps.google.com/support?hl=en
  80. http://www.google.com/intl/en_us/help/terms_maps.html
  81. http://www.google.com/intl/en_us/policies/privacy/
  82. javascript:void(0)
  83. javascript:void(0)
  84. javascript:void(0)
  85. javascript:void(0)
  86. javascript:void(0)
  87. javascript:void(0)
  88. javascript:void(0)
  89. javascript:void(0)
  90. javascript:void(0)
  91. javascript:void(0)
  92. javascript:void(0)
  93. javascript:void(0)
  94. javascript:void(0)
  95. javascript:void(0)
  96. javascript:void(0)
  97. javascript:void(0)
  98. javascript:void(0)
  99. https://maps.google.com/
 100. javascript:void(0)

   Hidden links:
 101. http://www.google.com/intl/en/options/
 102. https://plus.google.com/u/0/notifications/all?hl=en
 103. https://plus.google.com/u/0/stream/all?hl=en
 104. https://plus.google.com/u/0/me?tab=lX
 105. https://maps.google.com/maps?ct=reset&tab=ll
 106. javascript:void(0)
 107. https://maps.google.com/
 108. https://maps.google.com/
 109. https://maps.google.com/
 110. https://maps.google.com/
 111. https://maps.google.com/
 112. javascript:void(0)
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------