Maps
Freshpaint offers a HIPAA-compliant, Customizable, Zoomable, Panable map and location services APIs that can be embedded within healthcare focussed websites.
Last updated
Was this helpful?
Freshpaint offers a HIPAA-compliant, Customizable, Zoomable, Panable map and location services APIs that can be embedded within healthcare focussed websites.
Last updated
Was this helpful?
Many healthcare organizations utilize maps as part of their web presence to aid in user conversions by understanding where a healthcare provider is located. Freshpaint offers a series of HIPAA safe base components for building Maps components and location services into a web page.
Map tiles are the data about how to draw a map at a particular location. These tiles contain all the information about the locations of everything to be drawn a map, all the rivers, roadways, labels, buildings, and more.
Freshpaint serves tile information based on , the largest open dataset of every location on planet earth, supported by a large community and open to contributions.
Freshpaint recommends using as the code library to use to draw the maps on a web page. Maplibre-js is a fully featured open-source library that understands the map tiles served by Freshpaint and can render them into a map on a web page. Maplibre also provides similar functionality as other mapping services you may have used or seen elsewhere.
If your website is built using a framework, you can use any of the MapLibre libraries or wrappers that are available for the particular framework.
Freshpaint provides access to the unmodified MapLibre libraries from the freshpaint-hipaa-maps.com domain if you want a convenient place to access the web libraries for drawing a map.
Some more interactive web experiences require the use of location services APIs. Freshpaint provides access to a number of location services APIs that are used for Geocoding, Reverse Geocoding, and location search.
For example, a website developer may want to organize location results by distance from a website visitor. This might be done through requesting a zip code from the user. The location API allows the website to request the coordinates of a zip code, and then knowing the latitude and longitude of both the zip code and locations allows code to be written that will reorganize the results based on distance.
Freshpaint provides access to the for providing location APIs to a website visitor.
Freshpaint provides access to the Amazon AWS Location Services by accessing Freshpaint services.
So in the amazon location services docs, you might see:
/places/v0/indexes/IndexName/search/suggestions?key=Key
You would instead use
Generates suggestion results for addresses or point of interest based on partial or misspelled free-form text. This could be used for functionality related to autocomplete, autosuggest, or fuzzy matching.
Geocodes free-form text, such as an address, name, city, or region to allow you to search for a place or point of interest. You can apply filters or bounding boxes in the request to only return locations in the correct geography.
Sometimes referred to as Reverse Geo-coding, takes a given coordinate and returns a Place and information such as address, country, etc related to the returned Place.
Returns additional information about a place. Other API operations may return a PlaceID, and GetPlace can be used to find the address, categories, countries and more about the PlaceID.
The example site has a full working demo that you can inspect and customize to your needs.
Freshpaint uses MapLibre as an open-source renderer to display the map. You will need to load MapLibre and its stylesheet.
This demo shows how to add on-click handlers to customize behaviors when users click on Map pins. It also shows how to link external actions to the Map (e.g. so on-click outside of the map cause the map to recenter).
Freshpaint also offers a HIPAA-compliant Location search service that finds location matches to user inputs. We offer a backend that can be used with your autocomplete frontend of choice.
The API is accessible at
Freshpaint also offers a HIPAA-compliant Reverse Geocoding API that allows you to look up an address based on Latitude and Longitude.
The API is accessible at
Because we use AWS Location Services, a full account of all supported features, and inputs can be found here:
Can I use Freshpaint maps with React, Angular, or other web frameworks?
Yes. Freshpaint hasn't seen enough interest in any of these to prepare examples, but all that should be needed is to embed maplibre-js and point the library at the Freshpaint tiles as our regular JS demos use. If you need help you can always contact Freshpaint support.
Can I zoom the map to automatically capture all of my locations?
Yes. The maplibre fitBounds call supports providing a list of Longitude and Latitude pairs, and will provide a bounding box that contains all the added pins. When calling fitBounds on the map make sure to add some padding so any pins are not right on the edge of the bounding box.
Can I use browser based location services to identify the location of the website visitor?
Can I install maplibre into my project instead of using the version from Freshpaint
Yes. The maplibre libraries provided by Freshpaint servers are not modified.
See on how to find you're environment ID and replace YOUR-ENVIRONMENT-ID-HERE
with the token for you're particular Freshpaint environment.
See the working demo at for a demo with the Freshpaint map connected to clickable location cards.
Because we use AWS Location Services, a full account of all supported features, and inputs can be found here:
Many browser support a geolocation API which will give you approximate coordinates of the browser if allowed by the user. See the for what most web browsers will provide for accessing web visitor coordinates.