Add docstring for to_maps_url()
parent
5b2d28ac0b
commit
afe57f642d
|
@ -266,6 +266,17 @@ class Location(STIXDomainObject):
|
||||||
self._check_properties_dependency(['longitude'], ['latitude'])
|
self._check_properties_dependency(['longitude'], ['latitude'])
|
||||||
|
|
||||||
def to_maps_url(self, map_engine="Google Maps"):
|
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 = []
|
params = []
|
||||||
|
|
||||||
latitude = self.get('latitude', None)
|
latitude = self.get('latitude', None)
|
||||||
|
|
Loading…
Reference in New Issue