IDigBio API v1 Examples: Difference between revisions

Line 1,084: Line 1,084:
=== Mapping Example ===
=== Mapping Example ===


The following HTML and javascript code is suitable for copying and pasting into a web site in order to display a small specimen map containing iDigBio data points.
The following HTML page with javascript code example is suitable for copying and pasting into a web site in order to display a small specimen map containing iDigBio data points.


The [[IDigBio API v1 Specification#Search|iDigBio Elasticsearch]] documentation should be considered required reading before attempting to integrate this code into one's site.
The [[IDigBio API v1 Specification#Search|iDigBio Elasticsearch]] documentation should be considered required reading before attempting to integrate this code into one's site.


This example displays a map matching Scientific Name (dwc:scientificName) of "Abietinella abietina" and an Institution Code (dwc:institutionCode) of "DUKE".  The search terms for this query are:
This example displays a map that includes specimen data points that match the criteria of Scientific Name (dwc:scientificName) is "Abietinella abietina" and Institution Code (dwc:institutionCode) is "DUKE".  The Elasticsearch terms for this query are:


<pre>
<pre>
1,554

edits