Normally, I would have to book an itinerary using Y class using OTA_AirBookRQ, and then issue a WPNCB#PJCB to get the lowest JCB fare that is available, then I issue a WPDF to get a breakdown of the cost of a given routing per fare basis code and taxes.I'm trying to find out if there is a faster way of getting to the breakdown. Documentation for PO_PNRPricingRQ seems to indicate that it's possible, but the solution eludes me.How can I use PO_PNRPricingRQ to price lowest JCB fare that is available? If it's possible, can you provide an example request?
Why dont you use OTA_AirLowFareSearchLLSRQ? Thats a shopping service, checks availability and price at the same time.
Related
I am having issues, combining some fares, from Bargain Finder Max's SimpleOneWayItineraries (SOAP), when sending to OTA_AirBookRQ. The issue happens simply because some of these one-way fares are not combinable. When sending those itineraries together, the response is the famous NO COMBINABLE FARES FOR CLASS USED.
I suspect, in order to avoid sending these faulty requests, BFM would supply me with a piece of information, that signifies which fares can be priced together.
Despite searching the docs, over and over, I have not found an indicator on each PricedItinerary that signals such information.
Please let me know if the indicator exist, or better yet, how I can avoid displaying these faulty combination of fares, from Bargain Finder Max.
The only alternative is to enable Multi-Ticket, which will produce a different ticket for each fare component.
In cases where carriers do not have an agreement, this allows you to combine searches.
It will also retrieve compatible fares if that criteria is met.
I hope this information was useful.
I have searched the questions here and gone through a fair amount of the API. I have not found reference to requesting historic route data. My questions is this; Does the Here api support historical route data. An example request would be that I seek the mileage from point a to point b 365 days ago, when perhaps a key route obstruction existed such as a bridge was out or a road was closed for construction that resulted in more miles during that historic period.
I would like to answer this in two parts
Can a route be calculated for a past date ?
Yes, you can. You need to request a Time Aware Route like below. You can read more about it in the developer site.
`
GET https://route.api.here.com/routing/7.2/calculateroute.json
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&mode=fastest;car;
&waypoint0=geo!37.743385,-122.422835
&waypoint1=geo!37.743878,-122.423686
&departure=2014-03-12T10:00:00
&routeattributes=sh,bb,g
`
Will the map used for the query depend on the departure date ?
No, Here API always uses the current version of the map available unless you specify explicitly the map version. But you can specify only till previous two releases.
So for your question, you wont be able to get the map data for a past year even using map version. But what you can do, is explicitly avoid the bridge or road newly constructed so that the api doesn't suggest that route. You can do this through Custom Route Extension API like below example.
GET http://cre.api.here.com/2/overlays/upload.json
?map_name=OVERLAYBLOCKROAD
&overlay_spec=[{"op":"override","shape":[[50.10765,8.68774],[50.10914,8.68771]],"layer":"LINK_ATTRIBUTE_FCN","data":{"VEHICLE_TYPES":"0"}}]
&storage=readonly
&app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
Anyone know how to send multiple chained commands via SabreCommandLLSRQ HostCommand?
I'm trying to avoid the network back and forward (gets slow when you need 50 commands to get one full page)
Ex:
FQYYZBKK15JAN-AC + all the necessary move downs, or get the fare rules for all the 99 or so fares there.
Sounds like you want to scrape all available Fares + the attributes (penalties, baggage etc). I cant clarify because of my reputation.
If so you might be better of with Vayant or some caching company of Fares as it is way cheaper (you are producing tons of looks but no books and might brake the limit (look/book) that has been agreed upon with sabre.
If you want to stay with sabre you should use: FareLLSRQ also called Air Fare by City Pairs + OTA_AirRulesLLSRQ
A cabin class (F/J/Y or First/Business/Economy) can have multiple fare basis within it, which are designated with specific letters.
For the app I am developing, I need to determine the cabin class of a specific fare basis for a given flight. I am using GetItinerary (Service action code: TravelItineraryReadRQ) since I use a PNR, but although it gives the fare basis, I can't seem to find the cabin.
I am pretty sure Sabre has a way of telling, since BargainFinderMax allows you to search through different cabin classes.
Any ideas?
Having the class of service you could check the DU table with VendorCodesLLSRQ to see which cabin it corresponds to for that specific airline.
https://developer.sabre.com/docs/soap_apis/utility/get_vendor_codes/
Hope this helps.
Bruno.
I think the question has been answered here before,but i could not find the desired topic.I am a newbie in web scraping.I have to develop a script that will take all the google search result for a specific name.Then it will grab the related data against that name and if there is found more than one,the data will be grouped according to their names.
All I know is that,google has some kind of restriction on scraping.They provide a custom search api.I still did not use that api,but hoping to get all the resulted links corresponding to a query from that api. But, could not understand what will be the ideal process to do the scraping of the information from that links.Any tutorial link or suggestion is very much appreciated.
You should have provided a bit more what you have been doing, it does not sound like you even tried to solve it yourself.
Anyway, if you are still on it:
You can scrape Google through two ways, one is allowed one is not allowed.
a) Use their API, you can get around 2k results a day.
You can up it to around 3k a day for 2000 USD/year. You can up it more by getting in contact with them directly.
You will not be able to get accurate ranking positions from this method, if you only need a lower number of requests and are mainly interested in getting some websites according to a keyword that's the choice.
Starting point would be here: https://code.google.com/apis/console/
b) You can scrape the real search results
That's the only way to get the true ranking positions, for SEO purposes or to track website positions. Also it allows to get a large amount of results, if done right.
You can Google for code, the most advanced free (PHP) code I know is at http://scraping.compunect.com
However, there are other projects and code snippets.
You can start off at 300-500 requests per day and this can be multiplied by multiple IPs. Look at the linked article if you want to go that route, it explains it in more details and is quite accurate.
That said, if you choose route b) you break Googles terms, so either do not accept them or make sure you are not detected. If Google detects you, your script will be banned by IP/captcha. Not getting detected should be a priority.