def obfuscated_location_url(self, **kwargs): """Generates URL for several markers, among them the location :kwargs: parameters to pass to google.generate_generic_url :returns: str """ location_strs=coords_to_str([c._location for c in self._children]) return google.generate_generic_url(markers=location_strs, **kwargs)
def location_url(self, **kwargs): """Generates URL for single marker of location :kwargs: parameters to pass to google.generate_generic_url :returns: str """ location_str=coord_to_str(self._location) return google.generate_generic_url(markers=[location_str], **kwargs)
def recursive_urls(self, **kwargs): """Generates URL for several markers, including all the children and their children and their children... :kwargs: parameters to pass to google.generate_generic_url :returns: str """ location_strs=coords_to_str(self.recursive_locations()) return google.generate_generic_url(markers=location_strs, **kwargs)
def obfuscated_url(self): """Generate URL for the instantiated map with the real location as well as all the fake ones :returns: str """ location_strs=coords_to_str(self._obfuscated_location) size_str=size_to_str(self._size) return google.generate_generic_url(visble=location_strs, markers=location_strs, zoom=[self._zoom],size=[size_str])
def location_url(self,location=None): """Generate URL for the instantiated map with only the real location or the fake one of the given index. :index: int :returns: str """ obfs_strs=coords_to_str(self._obfuscated_location) size_str=size_to_str(self._size) location_str="" if location is None: location_str=coord_to_str(self._location) else: location_str=coord_to_str(location) return google.generate_generic_url(visble=obfs_strs, markers=[location_str], zoom=[self._zoom],size=[size_str])