Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9046937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:46:42+00:00 2026-06-16T11:46:42+00:00

<a href=http://maps.apple.com/?ll=<?php echo $_GET[q] ?> style=text- decoration:none;color:gray;><div class=box style=position:absolute;top:0px;left:0px;font-family:Lato;><span style=float:left;>Directions</span><span style=color:#F2473F;float:right;>About <?php $lat =

  • 0
<a href="http://maps.apple.com/?ll=<?php echo $_GET[q] ?>" style="text-
decoration:none;color:gray;"><div class="box" style="position:absolute;top:0px;left:0px;font-family:Lato;"><span style="float:left;">Directions</span><span style="color:#F2473F;float:right;">About <?php
$lat = $_GET['lat'];
$long = $_GET['long'];
$q = $_GET['q'];
$mysongs = simplexml_load_file('http://www.mapquestapi.com/geocoding/v1/address?key=Fmjtd%7Cluuan1urn9%2Cb0%3Do5-968206&location=' . $q . '&callback=renderGeocode&format=xml');
$lat2 = $mysongs->results[0]->result[0]->result[0]->locations[0]->location[0]->latLng[0]->lat;
$long2 = $mysongs->results[0]->result[0]->result[0]->locations[0]->location[0]->latLng[0]->lng;
$mysongs4 = simplexml_load_file('http://www.mapquestapi.com/directions/v1/route?key=Fmjtd%7Cluuan1u2nh%2C2a%3Do5-96rw5u&from=' . $lat . ',' . $long . '&to=' . $lat2 . ',' . $long2 . '&callback=renderNarrative&outFormat=xml');
$vari = $mysongs4->route[0]->time;
$vari = $vari / 60;
echo round($vari);
?> minutes</span><br></div>

What did I do wrong?
The variables $lat2 and $long2 are empty. When I print_r $mysongs, it says that the API key is wrong, which it isn’t, and it returns a 403 error.

I’m pretty sure that this is a problem in the way I sent the URI in $mysongs, (cause I’ve had a similar problem before with the same API), but I’m not quite sure where.

The request I’m doing is ?q=19540 Jamboree Rd Ste 200 Irvine, CA&lat=33.852471&long=-117.7325256 .

Thanks you so much!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T11:46:43+00:00Added an answer on June 16, 2026 at 11:46 am

    This tested out perfectly for me. Maybe start with this as a basis and build up from there.
    http://www.laprbass.com/RAY_temp_solene.php

    <?php // RAY_temp_solene.php
    error_reporting(E_ALL);
    echo "<pre>";
    
    
    // API KEYS
    require_once('api.php');
    
    // REQUEST VARIABLES SIMULATED HERE
    $qadr = urlencode('19540 Jamboree Rd Ste 200 Irvine, CA');
    $qlat = 33.852471;
    $qlng = -117.7325256;
    
    // CALL THE MAPQUEST SERVICE
    $mysongs = simplexml_load_file('http://www.mapquestapi.com/geocoding/v1/address?key=' . MAPQUEST_API . '&location=' . $qadr . '&callback=renderGeocode&format=xml');
    
    // SHOW THE RESPONSE
    var_dump($mysongs);
    
    // ISOLATE THE GEOCODE OF THE RESPONSE
    $lat = (string)$mysongs->results->result->locations->location->latLng->lat;
    $lng = (string)$mysongs->results->result->locations->location->latLng->lng;
    
    // DO SOMETHING ELSE
    $mysongs4 = simplexml_load_file('http://www.mapquestapi.com/directions/v1/route?key=' . MAPQUEST_API . '&from=' . $qlat . ',' . $qlng . '&to=' . $lat . ',' . $lng . '&callback=renderNarrative&outFormat=xml');
    
    // SHOW THE RESPONSE
    var_dump($mysongs4);
    
    $vari = $mysongs4->route[0]->time;
    $vari = $vari / 60;
    
    // THE FINAL DATA WE WANT TO FIND
    echo '<h1>';
    echo round($vari);
    echo '</h1>';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to embed a mapquest direction page such as http://www.mapquest.com/maps?1c=Ann+Arbor&1s=MI&1a=1440+Hubbard+St&1z=48109-2083&1y=US&1l=42.293437&1g=-83.724491&1v=ADDRESS&2c=Ann+Arbor&2s=MI&2a=930+N+University+Ave&2z=48109-1055&2y=US&2l=42.278558&2g=-83.737969&2v=ADDRESS using an iframe.
I am considering replacing links with such as: <input type=button onclick =window.location.href('http://foo.com') value=Click me!
[{data:{attr:{href:http://www.google.com/,title:http://www.google.com/},title:Google},attr:{},metadata:{}}, {data:{attr:{href:http://www.yandex.com/,title:http://www.yandex.com/},title:Яндекс},attr:{class:},metadata:{}}] Help get the links from Json. Get the links of a given
I currently search the window.location.href individually: window.location.href: http://www.example.com/6CATA/folder/file.html var searchWinHref = window.location.href; if(searchWinHref.indexOf(/6CATA/) >
Is there a more efficient way of searching the window.location.href? window.location.href: http://www.example.com/6CATA/folder/file.html The current
I have a json structure that looks something like this: list:[ { type:link, href:http://google.com
I remember there's a redirect function in jQuery. It was like: $(location).href('http://address.com') But what
$(document).ready(function(){ $(a[href*='http://']:not([href*='+location.hostname+'])).attr(target,_blank); $(a[target!='_blank'][target!='_top']).click(function(){ $(#actualcontent).load($(this).attr(href)); window.location.hash=$(this).attr(href); return false; }); }); So I have this code
i found some code which is using anchor tags in eval eval(a='http://google.co.in'+window .location.href); The
Our site contains href links to various subdomains: foo.mysite.com, bar.mysite.com. For testing purposes, I'd

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.