Autosuggest and get timezone in detail - timezone

Is there any possibility to get timezone (IANA) in place detail after confirm autosuggest place?
I have a text field with autosuggest api. After user confirms one of the results, there is second request to Here API and I need timezone name in place details.
In my first version I used this endpoints:
autocomplete.geocoder.ls.hereapi.com/6.2/suggest.json
and for second detail request this:
geocoder.ls.hereapi.com/6.2/geocode.json
with locationattributes=adminInfo,timeZone and everything was OK, timezone was in response.
Now I am trying to switch to v7 of Here autosuggest API and I have a problem, I am not able to get timezone in my second (place detail) request (I am using lookup api).
And if I tried to mix versions - take place ID from first request (autosuggest api) and use it for geocode 6.2 - it is not valid.

The timezone option is not supported in Geocode and Search API V7 currently.
We will confirm that we can support the option timezone in the futuer.
For second question please see the part "Follow-up query" in documentation below.
There is lookup rest api v7.
https://developer.here.com/documentation/geocoding-search-api/dev_guide/topics/endpoint-autosuggest-brief.html

Related

YT search API to search for Arabic speaking channels locally in Israel

How can I retrieve all Arabic speaking channels locally in Israel.
Using the API explorer, I don't see such an option.
Which fields are mandatory for search to call the search API?
Is there any way to fulfill this task?
Update:
API Explorer
I couldn't get results
There are lots of parameters in the API v3 Docs for Search that you can play around with, some in particular you might find helpful are:
location
locationRadius
regionCode
relevanceLanguage
and you'll need to set type = "channel" to return only channels.
The only mandatory parameter is part which is what data you want returned from your results. For this search call, you only have one option for part, which is "snippet".
This is the only way to do it simply within your multiple parameters, and it will take 100 quota per search, assuming you have an API key already.
If you press 'Try This API' on the right, it'll even give you code snippets you can copy in a variety of languages, since you didn't specify one in the prompt.
Depending on the language, a call could look like the following:
GET https://youtube.googleapis.com/youtube/v3/search?part=snippet&location=Israel&regionCode=IL&relevanceLanguage=ar&type=channel&key=[YOUR_API_KEY] HTTP/1.1

How to get country specific result (only for UK) in HERE MAP iOS SDK?

HEREDeveloperSupport
Is there any method for AutoSuggestionRequest to get country specific result?
I am using the Native IOS SDK premium edition version 3.15,i need to show UK results only.
I am following the below code
let autoSuggestionRequest = NMAPlaces.sharedInstance()!.createAutoSuggestionRequest(location:geo,
partialTerm:text, resultType:getResultType())
autoSuggestionRequest?.languagePreference = languageLabel.text
I can't find this option in the 3.x Premium SDK (though I might also be missing it). As a workaround you can directly call the Autosuggest endpoint of the Search & Geocoding API. Using the "in" parameter and country code you can limit your results to a specific country.
Alternatively you can filter the results based on their country afterwards, though I understand that is less than convenient.
As per my R&D (posting date) and discuss with the HERE MAP support team on slack, there is no any method to find the Specific country address search result for example show UK results only. ( 3.x Premium SDK)
Now, I have created custom auto search bar using the POST API and it's working fine but it's showing the search address in your current location.

Get time spent by field (column) on Jira

I have a board with 3 columns (To-do, Work in Progress and Done).
Is there a way to get the time spent by a card on each column via API?
The getIssue does not fetch this kind of data
Regards
There is no 'time spent by' measure available through the JIRA REST API (as it is too narrow/specific).
There is a possibility to get timestamps of status changes via REST API though. As this answer explains it, you need to use &expand=changelog flag in your API request. In this case response would return created field for each transition that issue has made. You can use it to calculate time between issue transitions.
There is another answer that explains how to get dates using jira-python library (just in case you use it).

Twitter API 1.1 search/tweets - search by date

Since the "since" param is no longer in use, how can I search tweets older than specific date ? I understand how to use since_id, but in my case I don't have any historic tweet to take the tweet_id from. How is search by date done these days ?
It's an old question, but since it has no answer i share what i have found regarding this question by reading the docs and using the API.
Since and until params are only for maximum 9 past days.
Instead we can use since_id and max_id. You have to set them to unique ids of tweets. You can find one tweet in the specified time (from any user you want). Detect the id by using the API or simply by Developer tools of your browser.
You can use the until param:
Returns tweets generated before the given date. Date should be
formatted as YYYY-MM-DD. Keep in mind that the search index may not go
back as far as the date you specify here.

Is there a way to get a list of users based on a hashtag they used?

I want to get a list of users who have used a particular hashtag. Eg. #ManOfSteel.
How can I get a list of the users who are using that hashtag as well as their details (like which city they are tweeting from) using a twitter API or any other means?
Yes, you can. And it's quite simple, really.
According to the documentation:
GET search/tweets: - Returns a collection of relevant Tweets matching a specified query.
Resource URL: https://api.twitter.com/1.1/search/tweets.json
Now if you scroll down on that page, it gives an example of what a query for a tweet returns (I took a screen, sorry about the appalling arrow, it's 10am here and I haven't had my tea yet).
Great! So you know the URL and method (GET) that you need to get your data. As for searching for a hashtag specifically, the query documentation is what you're after.
This is basically as urlencoded string in the GET request like: ?q=#hashtag. Perform the search like that and you'll get back the data above. Then just loop through it, find the user object, and grab the value location key if you want the user's city.
Now, as for a library to interact with the twitter API, you haven't even stated what language you're using. From your profile, you use JAVA I'm guessing. Regardless, checkout the libraries page on the twitter dev site - there's one for JAVA that looks pretty good (and many for other languages too).
If you were using php, this post would be immensely helpful.

Resources