Thor Sarup

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: The Google Maps API daily query limit #1357519
    Thor Sarup
    Participant

    I have enterede the API key in settings, yes.

    in reply to: map appears above content [tribe_events view="map"] #1357207
    Thor Sarup
    Participant

    I have tried deactivating Make Plus and publish the page again (even without using the builder sections, just regular default template). But the problem remains.

    in reply to: map appears above content [tribe_events view="map"] #1356937
    Thor Sarup
    Participant

    This reply is private.

    in reply to: The Google Maps API daily query limit #1355971
    Thor Sarup
    Participant

    I dont know if a separate button will work. But this code for getting lat/lng seems to work:

    $add = urlencode("Vestergade 19, Copenhagen, Denmark"); // address stuff
    $request_url = "http://maps.googleapis.com/maps/api/geocode/xml?address={".$add."}&sensor=true"; // the request URL you'll send to google to get back your XML feed
    $xml = simplexml_load_file($request_url) or die("url not loading");// XML request
    $status = $xml->status;// GET the request status as google's api can return several responses
    if ($status=="OK") {
    	//request returned completed time to get lat / lang for storage
    	$lat = $xml->result->geometry->location->lat;
    	$long = $xml->result->geometry->location->lng;
    	echo "$lat,$long";  //spit out results or you can store them in a DB if you wish
    }
    if ($status=="ZERO_RESULTS") {
    	//indicates that the geocode was successful but returned no results. This may occur if the geocode was passed a non-existent address or a latlng in a remote location.
    }
    if ($status=="OVER_QUERY_LIMIT") {
    	//indicates that you are over your quota of geocode requests against the google api
    }
    if ($status=="REQUEST_DENIED") {
    	//indicates that your request was denied, generally because of lack of a sensor parameter.
    }
    if ($status=="INVALID_REQUEST") {
    	//generally indicates that the query (address or latlng) is missing.
    }

    from https://stackoverflow.com/questions/17843536/google-geocoding-api-error-over-query-limit.
    Though the post also states there can be limits here.

    in reply to: map appears above content [tribe_events view="map"] #1355675
    Thor Sarup
    Participant

    This reply is private.

Viewing 5 posts - 1 through 5 (of 5 total)