Google geolocation using cell tower info- Curl 400 Bad request PHP
问题 I'm trying to get latitude and longitude from cell tower info using Google's geolocation api. It requires a valid JSON with information like MCC, MNC, cellId, lac etc.., My PHP post request looks like this. <?php header("Access-Control-Allow-Origin: *"); $mcc = $_POST["mcc"]; $mnc = $_POST["mnc"]; $cellId = $_POST["cellId"]; $lac = $_POST["lac"]; $post_array = array( "cellId" => (int) $cellId, "locationAreaCode" => (int) $lac, "mobileCountryCode" => (int) $mcc, "mobileNetworkCode" => (int)