Sabre InstaFlights Search, can any one advice i am getting 404 not found respond upon trying InstaFlights Search on Sabre API explorer.
If you are testing using the Sabre API Explorer against the Sandbox environment, keep in mind this may have limited support City Pair Airports with test data.
To get a list of our supported city pairs of origin and destination airports, use the City Pairs Lookup API in API Explorer. You can pass any of these origin and destination airport codes in an InstaFlights Search API request.
Related
I'm pretty new to the instagram API so apologies if this is a dumb question. I'm trying to extract some measure of location (ideally latitude and longitude) from a list of ~250 location ids that I pulled from instagram. The closest thing I can find to my question is this converting instagram location id to latitude and longitude so that I can overlay them on Google Map except I don't have the address.
I've read the documentation and I suspect the url request should be structured as below, which I found here: https://developers.facebook.com/docs/graph-api/reference/location/
curl -i -X GET \
"https://graph.facebook.com/{graph-api-version}/{location-id}&access_token={user-access-token}
But I can't seem to return any results. Any help is much appreciated!
I can share a reliable alternative to the official Instagram API with good support.
To get geodata based on location id, you need to create several queries:
POST request to download geodata:
https://api.data365.co/v1.1/instagram/location/{location_id}/update?access_token=YOUR TOKEN
GET request to check the task status:
https://api.data365.co/v1.1/instagram/location/{location_id}/update?access_token=YOUR TOKEN
GET request to get geodata:
https://api.data365.co/v1.1/instagram/location/{location_id}?access_token=YOUR TOKEN
You can see at this link what location data you will receive.
For this service, getting geodata is a part of finding posts by location task.
But if you do not specify any additional parameters in the request, you will receive data only by location as a result.
The address I am attempting to geocode is 1030 Pops Way, Bogart, GA 30622. Google seems to think this address is located in Watkinsville, GA 30677 and so returns Watkinsville and 30677. This is incorrect. Literally every other site listing addresses, including USPS, locates this address in Bogart 30622.
This is not the only instance of Google returning incorrect zip codes I have come across.
https://maps.googleapis.com/maps/api/geocode/json?address=1030+pops+way+30622+bogart+ga&key=API-KEY
It seems to be a data issue on Google side.
Let's check the 'Pops Way, Bogart, GA 30622' request in Geocoder tool:
https://developers-dot-devsite-v2-prod.appspot.com/maps/documentation/utils/geocoder/#q%3DPops%2520Way%252C%2520Bogart%252C%2520GA%252030622
As you can see the result is a route with a postal code 30622 as shown in my screenshot
However if I click the building with number 1030 on this street the postal code changes to 30677
https://developers-dot-devsite-v2-prod.appspot.com/maps/documentation/utils/geocoder/#q%3D33.901296%252C-83.559744
as shown in the following screenshot
I can suggest reporting a wrong postal code in address to Google data team as explained in the documentation
https://support.google.com/maps/answer/3094088
You can use this direct link
https://www.google.com/maps/#33.9017628,-83.5603702,18z/data=!10m1!1e1!12b1?rapsrc=apiv3
I hope this helps!
I'm tring to search locations with the Instagram API in my application but also when testing with Apigee, I get 500 Internal server error, and Oops, an error occurred.
Apigee: https://apigee.com/console/instagram
Authenticate yourself and add this URL: https://api.instagram.com/v1/locations/search?lat=40.758896&lng=-73.985131
It should return Time Square locations. It worked a few times in the past, but currently it doesn't.
It would be an overkill to use the Foursquare api to search for locations, then pass the location id to Instagram. Is that the only way to get around this? Because once you know the location's ID it works ok.
My possible solution would be to let the user find the desired location here: http://worldc.am/id/47383924f964a520444c1fe3
And use the v2 foursquare API location ID for Instagram.
The Instagram API is pretty bad in that regards - it often just says "Oops an error occured!", without giving you any more info.
I believe their servers have a really low time out limit. Add the parameter distance=500, or even less, and you won't get this error any more. Basically, in a high density area (like a big city), you need to specify a small distance number, otherwise Instagram's server just times out while serving your request.
I would like to return specific places (stores like Target, Macy's, etc.) by location (latitude, longitude).
I have been using the google places api and entering the different stores in the name parameter. The results are inconsistent at best.
Is this the api I should be using to return specific stores by name and proximity? The google places api near by search has only a single name parameter. I would ideally like to search for several specific stores in a single request to the endpoint for performance reasons.
In conclusion
What api should I be using to return specific stores by name and proximity?
The Google Places API is the correct Google API to use; however, as you mentioned it does not support multiple name or keyword parameters. There is an active Places API - Feature Request for this here, please star it if you wish to see it resolved and to be notified of future changes.
Instead of using the name parameter, try using the keyword parameter. The keyword parameter is matched against all available fields, including but not limited to name, type, and address, as well as customer reviews and other third-party content. This can often yield more or better results.
It seems as if the foursquare api does let you search for multiple specific places.
Here is an example url that does the trick:
https://api.foursquare.com/v2/venues/search?ll=34.017717,-118.159335&query=Target Victoria's Secret Macy's &intent=browse&radius=16094&oauth_token=mytoken
g
So I'm abandoning Google Places and going with FourSquare.
Why do calls to the Google Maps Geocoder API return different results than what I see in my browser?
This one returns many items :
http://maps.google.fr/maps?q=McDonald,+paris
This one returns a ZERO_RESULT :
http://maps.googleapis.com/maps/api/geocode/xml?McDonald,+paris&sensor=false
FAQ: https://developers.google.com/maps/faq#geocoder_differences
The API geocoder finds postal addresses. The Maps geocoder uses lots of data, including business data, to find results.
There is the Places API which can find locations based on type/class, but it may not work for business names. Documentation