Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added licensing

  • Loading branch information...
commit d173bb4580763570b69944e15684bae6c960d3b2 1 parent ae814c5
@codepo8 authored
View
2  index.php
@@ -16,8 +16,6 @@
<p>This is a demo of the information the new <a href="http://developer.yahoo.com/geo/placefinder/">Yahoo Placefinder</a> API has available for you. Simply <strong>double-click</strong> on the map below to set a marker and see the information stored in the Placefinder dataset.</p>
<div class="yui-gc">
<div class="yui-u first">
- <!--<form id="f"><label for="to">Move the map to:</label><input type="text" name="to" id="to"><input type="submit" value="Go">
- </form>-->
<div id="map"></div>
</div>
<div class="yui-u">
View
7 placefinder.css
@@ -1,3 +1,10 @@
+/*
+ Placefinder Explorer by Christian Heilmann
+ http://isithackday.com/hacks/geo/placefinder/
+ Copyright (c)2010 Christian Heilmann
+ Code licensed under the BSD License:
+ http://wait-till-i.com/license.txt
+*/
#map{width:100%;height:600px;}
h1 span,#f2{position:absolute;top:0;left:-9999em;}
h1{background:url(placefinder.jpg) no-repeat;line-height:50px;padding-left:100px;color:#393;font-size:180%;}
View
7 placefinder.js
@@ -1,3 +1,10 @@
+/*
+ Placefinder Explorer by Christian Heilmann
+ http://isithackday.com/hacks/geo/placefinder/
+ Copyright (c)2010 Christian Heilmann
+ Code licensed under the BSD License:
+ http://wait-till-i.com/license.txt
+*/
var placefinder = function(){
var counter = 0,
data = [],
View
10 placefinder.php
@@ -1,8 +1,16 @@
<?php
+/*
+ Placefinder Explorer by Christian Heilmann
+ http://isithackday.com/hacks/geo/placefinder/
+ Copyright (c)2010 Christian Heilmann
+ Code licensed under the BSD License:
+ http://wait-till-i.com/license.txt
+*/
header('Content-type: text/javascript');
+$appid = 'YD-bs4vWJU_JXrmPwSfQ8yStcfWoDA5n51J';
echo 'placefinder.datain("';
$latlon = $_GET['latlon'];
-$url='http://where.yahooapis.com/geocode?q='.$latlon.'&gflags=ACR&flags=QRGSTXP&appid=YD-bs4vWJU_JXrmPwSfQ8yStcfWoDA5n51J';
+$url='http://where.yahooapis.com/geocode?q='.$latlon.'&gflags=ACR&flags=QRGSTXP&appid='.$appid;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
Please sign in to comment.
Something went wrong with that request. Please try again.