dockers/scraper/schedular.py
def latlon_by_term(searchterm):
    '''
    Get lat and Longitude from address, not in the street dict, these results
    Are added to the dict, in this way we never search the same term twice!
    '''
    YOUR_APP_ID = "icnkexRkeE1jpTvEhi8G"
    YOUR_APP_CODE = "b75GL1eDwQ11BAp6kO-jkA"

    # Send rewuest with all info
    url = f"https://geocoder.api.here.com/6.2/geocode.json?app_id={YOUR_APP_ID}&app_code={YOUR_APP_CODE}&searchtext={searchterm.replace(' ','+')}"
    response = requests.get(url)
    d = json.loads(response.text)

    # Retrieve only the lat and long of the very complex API response.
    lldict = d['Response']['View'][0]['Result'][0]['Location']['NavigationPosition'][0]
    return lldict['Latitude'], lldict['Longitude']

    Get lat and Longitude from address, not in the street dict, these results
    Are added to the dict, in this way we never search the same term twice!
    
Get lat and Longitude from address, not in the street dict, these results
Are added to the dict, in this way we never search the same term twice!
Get lat and Longitude from address not in the street dict these results Are added to the dict in this way we never search the same term twice!
def latlon_by_term(searchterm):
    YOUR_APP_ID = "icnkexRkeE1jpTvEhi8G"
    YOUR_APP_CODE = "b75GL1eDwQ11BAp6kO-jkA"
    url = f"https://geocoder.api.here.com/6.2/geocode.json?app_id={YOUR_APP_ID}&app_code={YOUR_APP_CODE}&searchtext={searchterm.replace(' ','+')}"
    response = requests.get(url)
    d = json.loads(response.text)
    lldict = d['Response']['View'][0]['Result'][0]['Location']['NavigationPosition'][0]
    return lldict['Latitude'], lldict['Longitude']
def latlon_by_term ( searchterm ) : YOUR_APP_ID = "icnkexRkeE1jpTvEhi8G" YOUR_APP_CODE = "b75GL1eDwQ11BAp6kO-jkA" url = f"https://geocoder.api.here.com/6.2/geocode.json?app_id={YOUR_APP_ID}&app_code={YOUR_APP_CODE}&searchtext={searchterm.replace(' ','+')}" response = requests . get ( url ) d = json . loads ( response . text ) lldict = d [ 'Response' ] [ 'View' ] [ 0 ] [ 'Result' ] [ 0 ] [ 'Location' ] [ 'NavigationPosition' ] [ 0 ] return lldict [ 'Latitude' ] , lldict [ 'Longitude' ]
Get lat and Longitude from address, not in the street dict, these results
Are added to the dict, in this way we never search the same term twice!
Get lat and Longitude from address not in the street dict these results Are added to the dict in this way we never search the same term twice!
'''
    Get lat and Longitude from address, not in the street dict, these results
    Are added to the dict, in this way we never search the same term twice!
    ''' # Send rewuest with all info # Retrieve only the lat and long of the very complex API response.
searchterm