Trying to get this to work in the test environment and keep getting connection failure. Is there a test API for Geocoding with http?

<cfhttp method="get" url=",&amp;country=New Zealand&amp;format=geojson" getasbinary="never"> <cfoutput> <cfdump var="#cfhttp.filecontent#"> </cfoutput>

asked 20 Jun '19, 02:51

LoganOSM's gravatar image

accept rate: 0%

How do I create User-Agent identifying the application so API call will work?

(05 Jul '19, 15:13) LoganOSM

How will depend on how you're making the https call. Is that via a web framework for a particular environment or language, or something else?

Edit: Richard has spotted that you're using Cold Fusion - best to follow his suggestion.

(05 Jul '19, 16:19) SomeoneElse ♦

User-agent still not working. Can I provide an IP address to you to be granted permission? Or do you have one sample call that uses address to obtain lat/lng in geocode that does not require useragent or valid HTTP referer?

(08 Jul '19, 15:25) LoganOSM

Read the Nominatim usage policy:

You need to "Provide a valid HTTP Referer or User-Agent identifying the application (stock User-Agents as set by http libraries will not do)". If you do not, then it's very likely your requests will be blocked.

(Learning how to set a user-agent in ColdFusion is outwith the scope of this help site and you'd probably need to ask on a ColdFusion support site.)

permanent link

answered 20 Jun '19, 12:04

Richard's gravatar image

Richard ♦
accept rate: 18%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 20 Jun '19, 02:51

question was seen: 1,033 times

last updated: 09 Jul '19, 09:52

powered by OSQA