Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5252 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have given up on Google Directions, as it works, but only sometimes, due to the query limit and the domain that I am using.

I switched to MapQuest and I get a result everytime, but only in my browser. I have an XSLT stylesheet and FM accepts it at first, even lets me specify the import order, but when it comes time to import, it fails.

I have a file: directions.fp7

- field: narrative (text)

I have a MapQuest key: lalalala(obviously an example), and I have the wildcard setup in the API key account so it shouldn't care which domain is requesting it.

I have an XML Data Source:

"http://www.mapquestapi.com/directions/v1/route?key=lalalala&from=" & directions::start & "&to=" & directions::stop & "&callback=renderNarrative&outFormat=xml"




- that looks like this when compiled:




http://www.mapquestapi.com/directions/v1/route?key=lalala&from=8401 W Monroe St

, 85345&to=6350 W Glendale Ave, 85301&callback=renderNarrative&outFormat=xml




I have an xslt: mqdirect.xsl




<?xml version="1.0" encoding="UTF-8"?>















0

















































-which returns:




<?xml version="1.0" encoding="UTF-8" ?> 

- 

- 

  0

  

- 

  

  © 2010 MapQuest, Inc.

  © 2010 MapQuest, Inc.

  

  

- 

  4c30ab07-02f7-0000-02b7-4463-001ec93cd079

- 

  raw

  -1.0

  0

  text

  true

  true

  true

  true

  false

  false

  0

  FASTEST

  en_US

  M

  

  

  true

  

- 

- 
  • 33.577758 -112.239822
- 33.538311 -112.196098 4.315999984741211 500 00:08:20 - - 4.316 500 00:08:20 0 - - - 33.577331 -112.239822 0.375 81 00:01:21 0 2 8 Start out going EAST on W MONROE ST toward N 84TH AVE. East 0 - W MONROE ST - - <img src='<img src='http://content.mapquest.com/mqsite/turnsigns/rs_right_sm.gif' alt='' class='ipsImage' >' alt='' class='ipsImage' ></p><p> - - http://www.mapquestapi.com/staticmap/v3/getmap?type=map&size=225,160&pois=purple-2,33.577331,-112.239822,0,0|purple-3,33.577758,-112.233421,0,0|&center=33.5775445,-112.23662150000001&zoom=12&key=Fmjtd|luu7206r2q,8n=o5-5y10u&rand=-1047336837&session=4c30ab07-02f7-0000-02b7-4463-001ec93cd079</p><p> - - 33.577758 -112.233421 2.495 203 00:03:23 0 2 5 Turn RIGHT onto W GRAND AVE/US-60 E. Southeast 1 - W GRAND AVE US HIGHWAY 60 E - - 2 8 60 - - http://api-signs.mqcdn.com/?s=rs&t=RS00002BW_SM&n=60&d=EAST</p><p> - - <img src='<img src='http://content.mapquest.com/mqsite/turnsigns/rs_right_sm.gif' alt='' class='ipsImage' >' alt='' class='ipsImage' ></p><p> - - http://www.mapquestapi.com/staticmap/v3/getmap?type=map&size=225,160&pois=purple-3,33.577758,-112.233421,0,0|purple-4,33.55278,-112.202926,0,0|&center=33.565269,-112.2181735&zoom=8&key=Fmjtd|luu7206r2q,8n=o5-5y10u&rand=-1047336837&session=4c30ab07-02f7-0000-02b7-4463-001ec93cd079</p><p> - - 33.55278 -112.202926 0.293 54 00:00:54 0 1 4 Turn SLIGHT RIGHT onto N 67TH AVE. South 2 - N 67TH AVE - - <img src='http://content.mapquest.com/mqsite/turnsigns/rs_slight_right_sm.gif' alt='' class='ipsImage' ></p><p> - - http://www.mapquestapi.com/staticmap/v3/getmap?type=map&size=225,160&pois=purple-4,33.55278,-112.202926,0,0|purple-5,33.54916,-112.202987,0,0|&center=33.55097,-112.2025865&zoom=11&key=Fmjtd|luu7206r2q,8n=o5-5y10u&rand=-1047336837&session=4c30ab07-02f7-0000-02b7-4463-001ec93cd079</p><p> - - 33.54916 -112.202987 0.751 109 00:01:49 0 6 4 Turn LEFT to stay on N 67TH AVE. South 3 - N 67TH AVE - - <img src='<img src='http://content.mapquest.com/mqsite/turnsigns/rs_left_sm.gif' alt='' class='ipsImage' >' alt='' class='ipsImage' ></p><p> - - http://www.mapquestapi.com/staticmap/v3/getmap?type=map&size=225,160&pois=purple-5,33.54916,-112.202987,0,0|purple-6,33.538311,-112.203056,0,0|&center=33.5437355,-112.2030215&zoom=10&key=Fmjtd|luu7206r2q,8n=o5-5y10u&rand=-1047336837&session=4c30ab07-02f7-0000-02b7-4463-001ec93cd079</p><p> - - 33.538311 -112.203056 0.402 53 00:00:53 0 6 8 Turn LEFT onto W GLENDALE AVE. East 4 - W GLENDALE AVE - - <img src='<img src='http://content.mapquest.com/mqsite/turnsigns/rs_left_sm.gif' alt='' class='ipsImage' >' alt='' class='ipsImage' ></p><p> - - http://www.mapquestapi.com/staticmap/v3/getmap?type=map&size=225,160&pois=purple-6,33.538311,-112.203056,0,0|purple-7,33.538425,-112.196098,0,0|&center=33.538368,-112.199577&zoom=12&key=Fmjtd|luu7206r2q,8n=o5-5y10u&rand=-1047336837&session=4c30ab07-02f7-0000-02b7-4463-001ec93cd079</p><p> - 0.0 0 00:00:00 0 -1 0 6350 W GLENDALE AVE is on the LEFT. 5 - - </p><p> false false false false false false false false false false false false - - 8401 W Monroe St Peoria AZ Maricopa County 85345-6560 US ADDRESS L1AAA false R - - 33.577331 -112.239822 20917791 s - 33.577331 -112.239821 - 6350 W Glendale Ave Glendale AZ Maricopa County 85301 US ADDRESS L1AAA false L - - 33.538425 -112.196098 20960240 s - 33.538424 -112.196096 0,1

I want to import the narrative data, and if I can get this to work, the index as well.

I can't figure out why this doesn't work. I believe I have followed all the grammer rules properly and I'm cannibalizing another XSLT from Google directions which is pretty much the same structure, so I'm at a loss.

Is there a glaring error here, or something more subtle that I am missing.

Posted

Subtle. Remove the "/" at the end of "maneuver/". It thinks you want to go further, like "maneuver/*". But you just want to end with "maneuver". That is, you don't need a slash at the end of a plain node path.

Posted

Thank you Fenton, I have made the change though and I still get a NetAccessorException error.

I am going to send a file to you back channel. Maybe there is something wrong with it and I'm just not giving all the right details.

Posted

I found the issue outside of the XSLT. So I had two, you fixed one. Thanks again, your help saved me a couple or more hours of wasting time trying to discern the issue with the XSLT.

This topic is 5252 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.