Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
Thor Sarup
ParticipantI have enterede the API key in settings, yes.
September 30, 2017 at 1:12 am in reply to: map appears above content [tribe_events view="map"] #1357207Thor Sarup
ParticipantI have tried deactivating Make Plus and publish the page again (even without using the builder sections, just regular default template). But the problem remains.
September 29, 2017 at 10:51 am in reply to: map appears above content [tribe_events view="map"] #1356937Thor Sarup
ParticipantThis reply is private.
Thor Sarup
ParticipantI 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.September 27, 2017 at 9:49 am in reply to: map appears above content [tribe_events view="map"] #1355675Thor Sarup
ParticipantThis reply is private.
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
