From afe57f642d35ef0ef877a1820832c5e8a1494ba2 Mon Sep 17 00:00:00 2001 From: Chris Lenk Date: Fri, 8 Feb 2019 14:41:54 -0500 Subject: [PATCH] Add docstring for to_maps_url() --- stix2/v21/sdo.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/stix2/v21/sdo.py b/stix2/v21/sdo.py index cff8ba6..accbd67 100644 --- a/stix2/v21/sdo.py +++ b/stix2/v21/sdo.py @@ -266,6 +266,17 @@ class Location(STIXDomainObject): self._check_properties_dependency(['longitude'], ['latitude']) def to_maps_url(self, map_engine="Google Maps"): + """Return URL to this location in an online map engine. + + Google Maps is the default, but Bing maps are also supported. + + Args: + map_engine (str): Which map engine to find the location in + + Returns: + The URL of the location in the given map engine. + + """ params = [] latitude = self.get('latitude', None)