array( 'Content-Type' => 'application/json', 'Accept' => 'application/json', 'x-api-key' => 'sWx8x1Nxv5U8XSohYj058jHZgy2TPBJ5Qfku9fDi', 'Authorization' => 'Bearer ' . $current_dock411_jwt ) ); // echo 'URL: ' . $url . '
'; $response = wp_remote_get($url, $args); if (is_wp_error($response)) { $error_message = $response->get_error_message(); echo "Something went wrong: $error_message"; return; } $facility_profile_details = json_decode(wp_remote_retrieve_body($response)); // echo '
' . print_r( $facility_profile_details, true ) . '
'; // Update current user's Dock411 JWT $new_dock411_jwt = wp_remote_retrieve_header($response, 'X-Authorization'); update_user_meta($current_user_id, $user_meta_key_dock411_jwt, $new_dock411_jwt); // Get the reviews, if any $facility_profile_reviews = new stdClass; if ($facility_profile_details->dock_summary->driver_rating->review_count > 0) { $facility_profile_reviews_url = 'http://app-api-test.dock411.com/v3/docks/' . $facility_profile_details->dock_summary->dock_id . '/reviews?limit=10'; $args = array( 'headers' => array( 'Content-Type' => 'application/json', 'Accept' => 'application/json', 'x-api-key' => 'sWx8x1Nxv5U8XSohYj058jHZgy2TPBJ5Qfku9fDi', 'Authorization' => 'Bearer ' . $current_dock411_jwt ) ); // echo '$facility_profile_reviews_url: ' . $facility_profile_reviews_url . '
'; $facility_profile_reviews_response = wp_remote_get($facility_profile_reviews_url, $args); if (is_wp_error($facility_profile_reviews_response)) { $error_message = $facility_profile_reviews_response->get_error_message(); echo "Something went wrong: $error_message"; return; } $facility_profile_reviews = json_decode(wp_remote_retrieve_body($facility_profile_reviews_response)); // echo '
' . print_r( $facility_profile_reviews, true ) . '
'; } ?>

Docks » dock_summary->region); ?> » dock_summary->shipper_receiver_name; ?> » dock_summary->dock_name; ?>

dock_summary->dock_name; ?>

Avg. Driver Rating dock_summary->driver_rating->dr; ?>

D411 ID™

dock_summary->d411_id); ?>

Current Conditions

dock_summary->current_conditions->co; ?>

Times

Wait Time
dock_summary->load_time->co) == 0) { $element_color = 'd9a394f8'; } elseif ($facility_profile_details->dock_summary->load_time->co > 120) { $element_color = '8576ba33'; } else { $element_color = '973ada2a'; } ?>
dock_summary->wait_time->co) > 0 ? $facility_profile_details->dock_summary->wait_time->co . 'm' : '—'; ?>
Load Time
dock_summary->load_time->co) == 0) { $element_color = 'd9a394f8'; } elseif ($facility_profile_details->dock_summary->load_time->co > 120) { $element_color = '8576ba33'; } else { $element_color = '973ada2a'; } ?>
dock_summary->load_time->co) > 0 ? $facility_profile_details->dock_summary->load_time->co . 'm' : '—'; ?>
Unload Time
dock_summary->load_time->co) == 0) { $element_color = 'd9a394f8'; } elseif ($facility_profile_details->dock_summary->load_time->co > 120) { $element_color = '8576ba33'; } else { $element_color = '973ada2a'; } ?>
dock_summary->unload_time->co) > 0 ? $facility_profile_details->dock_summary->unload_time->co . 'm' : '—'; ?>

Getting There

Local Directions
Check-in Location
Best Arrival Time
Late Wait Time
Yard Speed Limit
CB Channel
TWIC Required
Req. Internal Temp

Accommodations

Restrooms Available
Free Wi-Fi
Driver Lounge
Vending Machine
Parking
Overnight Sleeping
Kids Allowed
Pets Allowed

Facility

Indoor Dock
Outdoor Dock
Parking Lot Dock
Guns Allowed
Tobacco Free
Languages

Load/Unload

Appointment Needed
Heavy Hauler Friendly
Load/Unload Equip.
Crane Max
Forklift Max
Other Max
Liftgate Only
Load Verification

Backing

Backing
Maneuverability
Lighting
Dock Door Clearance

Services & Fees

Lumper Service
Washout Required

Security & Procedures

Security Checkpoints
Security Threats
Procedure
Product Specifications

Safety Equipment

Vehicle Restraints
Dock Barrier
Dock Leveler
Vest
Hard Hat
Glasses
Gloves
Chocks
Closed Toe Shoes
Other

Reviews (dock_summary->driver_rating->review_count; ?> )

reviews AS $facility_profile_review_index => $facility_profile_review) { ?>

created_by_user_handle; ?>

created_by_user_average_rating; ?> avg rating

created_at)); ?>

additional_comment; ?>

Cleanliness
cleanliness_rating; ?>
Lighting
lighting_rating; ?>
Lounge
lounge_rating; ?>
Maneuverability
maneuverability_rating; ?>
Parking
parking_rating; ?>
Professionalism
professionalism_rating; ?>
Restrooms
restrooms_rating; ?>
Safety
safety_rating; ?>
Security
security_rating; ?>
Times/Timeliness
times_rating; ?>

Add Your Review

Complete mess or actually neat and orderly?
Bright as can be or had to use my high beams?
Was there some place to relax? If so, how was it?
How was the maneuverability? Was it a tight squeeze or ya have plenty of room?
Could you park at or near their facility?
Were you treated liked a professional? Was the staff helpful?
Were the restrooms satisfactory?
Did you feel secure in the yard and the surrounding area?
Did you feel secure in the yard and the surrounding area?
Was it a quick in and out or did they make ya wait all day?

Facility Map

?>

Do you own or manage this facility?

dock_summary->shipper_receiver_name; ?>

dock_summary->d411_id); ?>

Average Driver Rating

dock_summary->driver_rating->dr; ?>

Facility Profile

dock_summary->dock_name; ?>

Location

dock_summary->shipper_receiver_address1; ?>
dock_summary->shipper_receiver_city; ?> , dock_summary->shipper_receiver_region; ?> dock_summary->shipper_receiver_postal_code; ?> dock_summary->shipper_receiver_country; ?>

Contact

dock_summary->contact->co; ?>

Hours

dock_summary->hours->co; ?>