New JSONP (JavaScript Callback) Support
I really love great suggestions. A few days ago David Evans from CanTab sent me an email suggesting an additional feature be added to Tiny Geo-Coder. He was kind enough to send along an example of what the new API call might look like and what the response might look like. It was so simple, I couldn’t resist.
This evening, I implemented JSONP support into the Tiny Geo-Coder API (JSONP in Wikipedia). So, now, as the documentation explains, if you send a querystring variable titled “callback” with the value being whatever function name you’re wanting to use, you’ll receive it back, wrapping the geo coordinates (or location, if you’re doing reverse geo-coding) in your function.
David explains the use case for this best:
The beauty of this is that it allows you to use the API in AJAX apps without running into problems with the same-origin policy.
So, there you have it. Go run off and create some awesome AJAX apps and report back to me what you’re doing so I can give you some props here on the blog.
Cheers,
Nate Ritter
One Response to “New JSONP (JavaScript Callback) Support”
Leave a Reply

Nate on August 20th, 2009
I can’t stand the “popular articles” footer at the bottom of this blog not having changed since I started it. So, this comment will hopefully fix that.