can I save response (specifically co-ordinates) from here.com using Geocoder API? - geocoding

I am setting up an application and it contains addresses of some people and I would like to find the geo-coordinates (lat, long) from those addresses and store them to my database.
can I query here.com and save it in my DB ?

You can use Batch Geocoder API to download the result of your request.
For example :
https://batch.geocoder.api.here.com/6.2/jobs/{YOUR JOB REQUEST ID}/result?app_id={YOUR_APP_ID}&app_code={YOUR_APP_CODE}
For detail information kindly go through the documentation
https://developer.here.com/documentation/batch-geocoder/topics/example-get-results.html

Related

Sign google cloud storage blob using access token with POSTMAN

This is my first post on this website, even if I usually use it to find answers to my issues.
I am using Google cloud storage to store images in a private folder, and I would like to display them in my website.
I saw on the documentation that I can use signed URLs to achieve my goals.
I am actually using the IAM signBlob method provided by Google to sign a blob using a service account's system-managed private key. When I use the Google API on the documentation, the POST request is doing great and I receive the keyId and the signedBlob in the response body.
Unfortunately, I am not able to reproduce that on Postman or in my own code. The POST request, on POSTMAN, always got a Status 404.
Screen of the POST requests on POSTMAN
Any advice is welcome, have a nice day,
Sincerely,
Theo.
I finally found a solution to my problem by changing the URL directly to :
https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/11483096708985xxxxxxxx:signBlob
It seems that using gRPC Transcoding was a problem on Postman...
Have a good day,
Sincerely
Théo.

404 error with Skyscanner rapid api to get flight infos

I can not get response from skyscanner api. Did I write something wrong?
https://skyscanner-skyscanner-flight-search-v1.p.rapidapi.com/apiservices/referral/v1.0/UK/GBP/en-GB/EDI/LHR/2021-05-26/2021-05-26?shortapikey=ra66933236979928&apiKey={shortapikey}
The endpoint you're trying to access doesn't exist. That's why it's returning 404.
Visit the homepage of Skyscanner API on RapidAPI Hub and take a look at the different endpoints it supports.
I believe you want an endpoint that return fligh information. Check out the endpoints available in the Browse Flight Prices category and pick a best one for you according to your needs.

How do I get coordinates programatically from Google Maps url sharing current location?

If I share my current location to a web server how can I get my coordinates from the shortened url?
This feature is available in the Google Maps mobile app in which users can choose to share a URL of their live location to friends via SMS.
For example, if my current url sharing location is https://maps.app.goo.gl/***random sequence of letters*** how can I get my location?
I've set up a Django web server that communicates with a Twilio client. When I text the Twilio number with the url of my live location I want it to return my coordinates.
Try to use the Google Maps Geocoding API

Bing Local Business Search API | Sending a request with Postman

I am trying to send a request to the Bing Local Business Search API using Postman.
It's giving a 404 status.
If I use the default URL not the regional one that matches my key it will return invalid key which makes sense, sounds like it's connecting properly.
But if I use the regional southcentral endpoint from my dashboard it returns a 404.
I signed up for the free plan and generated a key that I am using.
Here are my settings in postman. Thanks in advance.
I think you'll need to go into the Azure Portal. Under Cognitive Services create a new service with Bing Search v7 under the free tier. It should give you a global location. After it's created you'll get your keys. At least that worked for me. Their initial "Welcome page" keys did not work for me either, I don't understand why.
Then you'll be able to call - https://api.cognitive.microsoft.com/bing/v7.0/localbusinesses/search?q=chicago+restaurants&mkt=en-US
I think you need to URL encode the search params, the space after q=chicago should be %20.

How to programmatically post like and comment an URL on facebook?

This is confusing. So just to clarify:
REQ #1: To fetch basic stats for a URL, you send GET request to:
http://graph.facebook.com/?ids=http://some.com
(alternatively, FQL can be used to fetch stats for a URL, but that doesn't return the OpenGraph Object)
REQ #2: To fetch comments for a URL, you do a GET:
http://graph.facebook.com/comments/?ids=http://some.com
REQ #3: To fetch likes for a URL, you GET:
http://graph.facebook.com/likes/?ids=http://some.com
But how do you comment on / like a URL programmatically?
I guess, likes can be created using Open Graph API, right?
https://graph.facebook.com/me/og.likes?object=1234
where 1234 is the OpenGraph Object ID of an article (as returned by REQ #1).
But this requires an approval process, the like action has to be approved by Facebook.
Is there a better way to do this? Can I use for example the Graph API for all these things?
My goal:
Currently I'm using the Facebook like button and comments plugin to create likes and comments. But these use the JS SDK, which is huge, and they generate a lot of external requests. I wanna get rid of them and just send an AJAX request to my server, which would then asynchronously talk to Facebook, and it would post the Like / Comment.
Is this possible?
Thanks in advance!
I read through the Facebook docs briefly and I don't believe you can do this other than the way you indicated with authenticating.
You should also take a look at this thread: 'Like' a page using Facebook Graph API
You would need to authorize every single user before he would be able to like something, and you would need to go through a review process on Facebook. And i am pretty sure you would not get the required permissions approved just because you want to get rid of the JavaScript SDK overhead, to be honest.
The Social Plugins are asynchronously, so the overhead for downloading the SDK is irrelevant as it happens in the background and it is non-blocking.
I have an idea, to do this. You can use long term access token, Once you login you receive short term token. After receiving short term token you need to request your long term access token. Save that token in DB or file.
Then you can use Graph Api, to make requests. This will eliminate the need for access requirement every time you request api.
Just use access token you saved before.
Refer this documentation from Facebook for further clarity.
https://developers.facebook.com/docs/facebook-login/access-tokens
Happy Coding!
Atul Jindal