integrating road signs in Here maps - reactjs

Hi I am new to React and Here maps, I am using Here maps for maps. Currently I am able to show live marker position, I want to show road signs as well.
For that I am constructing a request as specified here documentation
https://image.maps.ls.hereapi.com/mia/1.6/roadsign?apiKey=H6XyiCT0w1t9GgTjqhRXxDMrVj9h78ya3NuxlwM7XUs&region=USA&category=0&label=I-80&w=100&h=100&f=0
In the documentation , only highways signs are mentioned. Is it possible to query traffic,speed limit signs as well? And the response returns image(PNG) , I am thinking to put that image onto map at specific lat and long position. Is this the right way to do?

The roadsign feature of the Map Image API has a very limited selection of signs and is in maintenance. You will have to create or source these images yourself. Fortunately there are many free icon collections available on the web.
Once you have the images, you can use a MapMarker to place these on the map.

Related

Data Studio Cannot Sum Numbers to Chart

I need help to create a chart of sum multiple sources in Google Data Studio. My sources are:
Google Search Console: Clicks
Google My Business: Phone Calls, Website Visits, and Direction Requests
Problem
The chart is not SUM-ing those numbers. See image below, the green line Combined Actions should be the SUM of all the 4 metrics I mentioned above. FYI I renamed the parameters to help me differentiate:
Site Search Clicks = GSC Clicks
Tebet Phone Calls = GMB Phone Calls
Tebet Website Visits = GMB Website Visits
Tebet Direction Requests = GMB Direction Requests
This is the formula I use
SUM(Clicks+Phone calls+Directions requests+Website visits)
This is the data source
I thought it was the number format that was corrupted, but if that's the case then why the individual chart is shown correctly? I can also draw each individual chart using SUM(Clicks), SUM(Phone calls), etc.
For Your Information, I have another chart in this page that works by summing:
Google Search Console: Impressions
Google My Business: Direct search impressions
So those 2 data metrics are working well.
Any help would be appreciated. Also let me know if you need any more context on this question. Thank you.
The issue is due to having NULL values (if there is no data for a single Metric at a single date in the SUM function, then that entire date row will be displayed as 0 in the Time Series chart); one approach is to incorporate the IFNULL function below which treats NULL values as the numeric literal 0:
SUM(IFNULL(Clicks, 0) + IFNULL(Phone Calls, 0) + IFNULL(Directions Requests, 0) + IFNULL(Website Visits, 0))
Editable Google Data Studio Report (Embedded Google Sheets Data Source) and a GIF to elaborate:

How to create search engine in leaflet map using apache solr?

I'm building an app that lets user find vacation rental from map. I've several data in my leaflet application. So my question is about:
How to make a search engine from the map itself that search the marker id(and content of it)?
In this case, i wish to create a search bar outside the map which user can search any places and the result should be appear in the map in the form of marker pointer which indicate the result instead of list of result in list view.
How to make the marker appear when user query the result
Your use case have a solution In Kibana-6 with elasticsearch , there is a lucene bar search which search interactively your data.
this is my work on nyc-cabs-data :
as you can see in the lucene bar i search the field total_amount which is a column in my csv

How to manage large amount content on one page in a clean user searchable way, filters

I've presented them all as a list in 3 columns (see here: http://focallocal.org/action/ ) but i need to double the amount there now and it is going to look terrible.
what we really need is filters to cross reference and organize them as the number will grow to over 100 soon. Any suggestions for managing and organizing the large amount of content?
It doesn't have to be on one page as long as i can put a short intro and photo to each page
I suggest making a separate post for each of your project descriptions with a custom post type called "project" or similar to group them all (and so it doesn't affect any ordinary blog posts.)
How to add a custom post type
Next, you need to "flush" the permalinks (Settings > Permalinks, click Save Changes.)
The Project posts can be split into categories or you can add tags (less formal) and each post can have a featured image.
If you called your post type "project", you will be able to view an index of all of them at http://example.com/project, which, taking the TwentyFourteen theme as an example, will use the archive.php file as a template (see the Template Hierarchy.)

Using google search api cursor in angular js app to get all results for google patent search

I want to make a search into google patent using the following URL which is obsolete
https://ajax.googleapis.com/ajax/services/search/patent?v=1.0&q=thumb%20wrestling%20apparatus&userip=192.168.1.102
It gives me limited number of records per page.
But at the end of the JSON it also returns the cursor which has start and label keys. So my question is that how can I use that cursor to show all the records in my search. Like if there are 8 pages and each page contains 4 records so I want to show all 32 records on my UI.
How can I achieve that?
And second question that is there REST APi for google patent search? If yes then how can I search the patent using REST API and how can I get all the records on one page?
It looks like the API is restricted to a maximum of 8 results per request (you can increase your current 4 results to 8 by using the query param rsz=8.
So I guess the only way to get all results is by performing multiple requests. So if the current page info data is...
"pages":[
{"start":"0","label":1},
{"start":"8","label":2},
{"start":"16","label":3},
{"start":"24","label":4},
{"start":"32","label":5}
]
You would make 5 requests chaining the start param start=0, start=8 ... and so on, extracting the results and pushing to an array store. If you're not already I recommend using something like Restangular, as it would make this process much easier.
Depending on how your UI is set out, it would be nice maybe to do this with some lazy loading as the user is scrolling through the list?

Manipulating Soundcloud Stream with Chrome Extension Content Script

I am writing a Chrome extension using AngularJS to add functionality to the Soundcloud stream page. I want to allow the user to create groups of artists so that they may only see a stream with tracks/shares/playlists from that group of artists.
For example, I follow 500 artists, but I want to quickly see a stream from my favorite 10 artists or from the artists I follow that are on the same label.
I am looking for advice on how I could go about making this as seamless as possible. As of right now, my approach involves getting the tracks with the Soundcloud API and using angular's ng-repeat to display the tracks in a view injected into where the stream normally goes. I realized using the Soundcloud widget was too slow and can't be customized to resemble the native stream items, so I copy/pasted the HTML that an actual stream item uses, but obviously the waveform/comment canvas and button functionality don't work.
What are my options as far as how I can approach this? Am I going to need to write my own players that look like the native Soundcloud ones? Any suggestions would be greatly appreciated.
You should use the SoundCloud API which is very well documented.
If you have already the id's of the tracks / artist, you just have to request the url
GET
http://api.soundcloud.com/tracks/ID_OF_TRACK.json?client_id=YOUR_CLIENT_ID
to get all the informations you need about this track, like the waveform_url, and for the comments you was talking about :
GET
http://api.soundcloud.com/tracks/ID_OF_TRACK/comments.json?client_id=YOUR_CLIENT_ID
To reproduce the behaviour of the comments :
POST http://api.soundcloud.com/tracks/ID_OF_TRACK/comments.json?client_id=YOUR_CLIENT_ID
(with a body param which represents the text and a timestamp in ms since the beginnin of the song, note that you must be connected)
If you don't have the id of the track, you could also use the resolve which give you all the info about a ressource if you have only the URL :
GET
http://api.soundcloud.com/resolve.json?url=https://soundcloud.com/poldoore/pete-rock-c-l-smooth-they&client_id=YOUR_CLIENT_ID

Resources