コード例 #1
0
ファイル: Commands.py プロジェクト: Jeremyyang920/ICS-32
 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()
コード例 #2
0
ファイル: UserInput.py プロジェクト: Jeremyyang920/ICS-32
def get_JSON(url:str)->'json':
    '''
    Gets the javascript output for processing the commands.
    '''
    return(QueryBuilding.get_json_result(url))
コード例 #3
0
ファイル: UserInput.py プロジェクト: Jeremyyang920/ICS-32
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