Hello all. I'm not the best at php, so please be with me. If I sound like an idiot on the topic, it's because I mostly am, so I won't mind.
Anyway, what I'm currently trying to do is integrate tiny geocoder results with a project I'm working on. There is an API, but no documentation for it. The only thing that is mentioned about the API is that no REST calls allowed, ruling out the use of file_get_contents. So how could I go about echoing the results of a URL such as:
http://tinygeocoder.com/create-api.php?q=111%20Post%20Road%20Warwick%20RI
I know the url would have to be encoded because of the spaces between words. In the end form, the url after q= would actually be populated from other variables (wordpress custom fields) for $address, $city, and $state. The whole purpose of this? To get the coordinates for an address attached to a post and drop the results (coordinates from Tiny geocoder api) into a google static map url.
If anyone has any suggestions / code I could use it'd be greatly appreciated because I've been looking everywhere and trying a lot of things but haven't figured it out yet. Thanks in advance!