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