Add docstring for to_maps_url()

master
Chris Lenk 2019-02-08 14:41:54 -05:00
parent 5b2d28ac0b
commit afe57f642d
1 changed files with 11 additions and 0 deletions

View File

@ -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)