I need to be able to extract a list of states the route passes through. Is there any functionality within the api that will provide this information?
e.g. A route that crosses 6 states from start point to end point. Get list of states. Preferably in order of crossing.
I'm not looking for code help. I've searched through the api and google with no results.
There is no function in the MapQuest directions api that returns a list of states for a route. But if the stateBoundaryDisplay parameter is set to true, the response will contain details like, "Crossing into Nebraska", in the maneuver text. The manuevers will be in the correct order.
Related
I am using instaFlights Search API of Sabre. I am unable to get response for any of the IATA 3-letter codes other then "JFK" and "LAX". Whenever I pass any other IATA code in the request like "DXB", i recieve an error.
please note that I am working on test environment and testing the api on the link given below.
link of API test page
The error that i receive every time i request with any other IATA Code.
Are you in CERT or PROD?
If you are still in CERT, only a subset of available flight schedules/fares will be found and returned. Do you have access to PROD? If you're working in PROD and not getting any results then I would think something else is malformed in your request.
InstaFlight is limited to specific POS (Point of Sale) and the available city pairs are tied to the POS being used.
I recommed you to contact the API Support team for further details.
I am using Skyscanner travel api and getting response successfully.
There are so many OutboundLegId and InboundLegId in the response.
I just want to show flights for the selected destination. please see attachment.
For this, Should I extract all the OutboundLegId and InboundLegId for required data or just first array record?
http://business.skyscanner.net/portal/en-GB/Documentation/FlightsLivePricingQuickStart
and I used below code:-
Skyscanner API for all airport locations and Travel API using CURL
Because each contains agents and other data.
Should I show all data on my site or need to use first 5-10 records only?
Please advice me on this.
Add this in the query string with session key &pageindex=1&pagesize=10
We are building a booking engine that needs to provide xml feed to 3rd parties meta search sites like Skyscanner, CheapFlights etc.
Issue we are having here is that we need to provide a "link"/"deeplink" so that they can land on the exact flights on click through.
What is the best way to achieve this? I cant find a unique flight ID in the BFM request which I can use to do another request to get that single flight when user click on the deeplink.
Has anyone thought of a way to make it happen?
Will be using PHP to code this out.
Hi I have a database with a list of contacts in which I am displaying onto a page in a list.
As part of this result set I have a post code, is it possible to generate a google map from that postcode and display it as part of the result?
If it is can any one help me get started?
You can use the post code as the location for your map and google will usually be able to find it.
For example, using the static maps API, the following url will give you a map for the zip code 92117 (which is in San Diego, CA):
http://maps.googleapis.com/maps/api/staticmap?center=92117&size=400x400&sensor=false
You can also do something along the lines of what primehunter326 was suggesting and reverse geocode using the javascript API. Which approach is best depends on what you are trying to do.
Start here for info on how to use the various Google Maps APIs:
http://code.google.com/apis/maps/index.html
Yes it is possible. The basic idea is that you use geocode to get longitude and latitude coordinates for the address. You can then use javascript to display a map on your page with all the points as markers. I'll try to find a link with that goes over it in more detail.
Here is a link which goes over geocoding
You'll need an API key in order to use their services, here
I am planning to use FB API to access "Events". For an example if I select Sri Lanka. All events by that location. If you guys had any luck with that let me know. I am browsing trough FQL to get this done didn't have much luck.
This does look like something helpful , i found it from a search , but couldn't. Get it to work as I need.
https://graph.facebook.com/search?q=coffee&type=post&geo=id&lang=indonesia&location=indonesia
Please post me up if you guys have any idea.
PS : Final outcome it to grab Events from FB and post on a blog something similar to tumblr.
I haven't done much work on Facebook platform but the following information might help you:
Read the Developer Documentation as it will tell you how to use API methods and what are their limitations
From what I understand, you can use https://graph.facebook.com/me/events?access_token=[a valid access token] to get events that the current user has been invited to or hosting. It is important to understand that this information are per user basis and each user will have to authorize your application to use information about their subscribed events. This means that it may not be possible to do something like 'Get a list of all events taking place in Colombo, Sri Lanka'. However you could use the above mentioned api method to collect data from users who use your application. You can then use this data retrospectively create a graph showing all public events information.
Hope that helps.
Dinesh.
Facebook doesn't support searching for events by location from the API. However you can use the graph search like this: https://graph.facebook.com/search?q=srilanka&type=event this will search for events having "srilanka" in either the description or the name or as their location. This does not guarantee that the events are from sri lanka but you can filter out the results based on the "location" field returned by the api.