Cross Domain AJAX Requests via PHP proxy

Click on the map to create a marker, then click on the marker to open an infowindow and click the Elevation link. You can create as many markers you want. All markers are draggable.

The script in this page uses a simple proxy with about 40 lines of PHP code. The proxy script was slightly adapted and responds to GET and POST requests. The proxy requires PHP with the curl extension enabled.

The AJAX elevetion request goes to the proxy and from there to the server of GeoNames Web Services. The answer goes back to the proxy and from there to the client script.

Back