Here is the proxy server script that I'm using to get the altitude from the USGS at the mouse click on the google map, not sure why but it is returning a "NaN" value when I run it. My server has PHP installed and I used similar scripts before. Can somebody please help me with this.
link: https://webdisk.ucalgary.ca/~snaqvi/public_html/images/Project/mapurl.html Here is the relevant portion of the PHP script: <?php $lat = $_REQUEST["lat"]; $lng = $_REQUEST["lng"]; $curl_handle=curl_init(); curl_setopt($curl_handle,CURLOPT_URL,"http://gisdata.usgs.gov/ xmlwebservices2/elevation_service.asmx/getElevation?X_Value=" . $lng . "&Y_Value=" . $lat . "&Elevation_Units=METERS&Source_Layer=-1&Elevation_Only=true "); header("Content-type: text/xml"); curl_exec($curl_handle); curl_close($curl_handle); ?> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
