<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mv="http://macVmlSchemaUri" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Courier New";
        panose-1:2 7 3 9 2 2 5 2 4 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New",serif;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Courier;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:595.0pt 842.0pt;
        margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1074743232;
        mso-list-type:hybrid;
        mso-list-template-ids:-1529309570 134807569 134807577 134807579 134807567 134807577 134807579 134807567 134807577 134807579;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style>
</head>
<body bgcolor="white" lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">I’d advise against using the “adhoc” maps.  They are incredibly slow and anything beyond small load really causes issue. A loop within an R script will likely kill the server.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">We are exploring alternatives (elasticsearch based) but it will be a while before ready.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">API-users <api-users-bounces@lists.gbif.org> on behalf of Scott Chamberlain <scott@ropensci.org><br>
<b>Date: </b>Saturday, 11 August 2018 at 11.08<br>
<b>To: </b>Matthew Blissett <mblissett@gbif.org><br>
<b>Cc: </b>"api-users@lists.gbif.org" <api-users@lists.gbif.org><br>
<b>Subject: </b>Re: [API-users] Multiple taxonKey values with maps API ?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">Thanks Tim/Matt, <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Right, the BOTH example is what I'm looking for. Great, didn't realize that adhoc would work!  The use case is this WIP project
<a href="https://github.com/ropensci/phylodiv">https://github.com/ropensci/phylodiv</a> where the idea is to let users quickly visualize biodiversity of taxa of a phylogeny (e.g., comparing clade A vs. B, species A vs. B, genus X vs. genus Y, etc.), and there's
 a lot more possible user questions I can handle if I can include multiple taxa in a map API query.  So I think adhoc may be fast enough to give users that quick response they'd need for exploring many questions quickly (much faster than downloading full occurrence
 data, and just a bit slower than density maps).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Best, Scott<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Fri, Aug 10, 2018 at 9:30 AM Matthew Blissett <<a href="mailto:mblissett@gbif.org">mblissett@gbif.org</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p>Hi,<o:p></o:p></p>
<p>A tile for the western hemisphere showing:<o:p></o:p></p>
<p>House sparrows: <a href="http://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=5231190&style=purpleYellow-noborder.poly" target="_blank">
http://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=5231190&style=purpleYellow-noborder.poly</a><o:p></o:p></p>
<p>Mackrel: <a href="http://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=8596&style=purpleYellow-noborder.poly" target="_blank">
http://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=8596&style=purpleYellow-noborder.poly</a><o:p></o:p></p>
<p>Both: <a href="http://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=5231190&taxonKey=8596&style=purpleYellow-noborder.poly" target="_blank">
http://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=5231190&taxonKey=8596&style=purpleYellow-noborder.poly</a><o:p></o:p></p>
<p>I think the both example is what Scott's asking for, and it <a href="https://github.com/gbif/maps/blob/master/vectortile-server/src/main/java/org/gbif/maps/resource/Params.java#L69" target="_blank">
isn't supported</a>.<o:p></o:p></p>
<p>It <i>is</i> supported with an ad-hoc search, but these are usually much slower:
<a href="http://api.gbif.org/v2/map/occurrence/adhoc/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=5231190&taxonKey=8596&style=purpleYellow-noborder.poly" target="_blank">
http://api.gbif.org/v2/map/occurrence/adhoc/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=5231190&taxonKey=8596&style=purpleYellow-noborder.poly</a><o:p></o:p></p>
<p>I've made an issue for it: <a href="https://github.com/gbif/maps/issues/27" target="_blank">
https://github.com/gbif/maps/issues/27</a> since it's not the first time this has been requested. The previous request was for different colours to be applied to each taxon, which is more complicated and different to just adding several taxa's occurrences together.<o:p></o:p></p>
<p>Cheers,<o:p></o:p></p>
<p>Matt<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">On 10/08/18 17:31, Tim Robertson wrote:<o:p></o:p></p>
</div>
</div>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div id="m_6586184388744324465compose-container">
<div>
<div>
<div>
<p class="MsoNormal">I’m not sure if this went unanswered but the API has supported that since the beginning Scott.
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Or have I misunderstood something? <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">In haste,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Tim<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Get <a href="https://aka.ms/o0ukef" target="_blank">Outlook for iOS</a><o:p></o:p></p>
</div>
</div>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="m_6586184388744324465divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> API-users
<a href="mailto:api-users-bounces@lists.gbif.org" target="_blank"><api-users-bounces@lists.gbif.org></a> on behalf of Scott Chamberlain
<a href="mailto:myrmecocystus@gmail.com" target="_blank"><myrmecocystus@gmail.com></a><br>
<b>Sent:</b> Friday, August 10, 2018 4:02:35 AM<br>
<b>To:</b> <a href="mailto:api-users@lists.gbif.org" target="_blank">api-users@lists.gbif.org</a><br>
<b>Subject:</b> [API-users] Multiple taxonKey values with maps API ?</span> <o:p>
</o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal">Hello!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Are there any plans to allow passing any of the primary parameters (taxonKey, datasetKey, country, publishingOrg, publishingCountry) more than once. e.g.
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">...?taxonKey=1&taxonKey=2<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">or comma separated. Perhaps up to some max number?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Or is there a good reason not to suppor that? Woud it lead to jobs that run too long on your servers?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks! Scott<o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
</blockquote>
</div>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>_______________________________________________<o:p></o:p></pre>
<pre>API-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:API-users@lists.gbif.org" target="_blank">API-users@lists.gbif.org</a><o:p></o:p></pre>
<pre><a href="https://lists.gbif.org/mailman/listinfo/api-users" target="_blank">https://lists.gbif.org/mailman/listinfo/api-users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">_______________________________________________<br>
API-users mailing list<br>
<a href="mailto:API-users@lists.gbif.org" target="_blank">API-users@lists.gbif.org</a><br>
<a href="https://lists.gbif.org/mailman/listinfo/api-users" target="_blank">https://lists.gbif.org/mailman/listinfo/api-users</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>