def command(self,url): result=Latlong.LatLng(self,url) print(result) print('Elevations') for x in range(0,len(result),2): newURL=QueryBuilding.build_elevation(result[x:x+2]) newURL=QueryBuilding.get_json_result(newURL) for item in newURL['elevationProfile']: print(round(item['height'])) print()
def get_JSON(url:str)->'json': ''' Gets the javascript output for processing the commands. ''' return(QueryBuilding.get_json_result(url))
def process_Addresses(Addresses:list): ''' Returns the url based on the directions provided in process Addresses ''' url=QueryBuilding.build_multiple_url(Addresses[1:],Addresses[0]) return url