Skip to content

Commit

Permalink
use get_lat_lng_from_geocode in gpt
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Nov 8, 2024
1 parent 5dde17a commit c44b9e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oldnyc/geocode/coders/gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import json
import sys

from oldnyc.geocode.coders.coder_utils import get_lat_lng_from_geocode
from oldnyc.geocode.geocode_types import Coder, Locatable
from oldnyc.geocode.geogpt.generate_batch import GptResponse
from oldnyc.item import Item
Expand Down Expand Up @@ -78,7 +79,7 @@ def getLatLonFromGeocode(self, geocode, data, record: Item):
sys.stderr.write(json.dumps(data) + "\n")
sys.stderr.write(json.dumps(geocode) + "\n")
else:
tll = self.milstein._getLatLonFromGeocode(geocode, data)
tll = get_lat_lng_from_geocode(geocode, data)
sys.stderr.write(f"gpt geocode success: {record.id} {tll}: {data}\n")
return result

Expand Down

0 comments on commit c44b9e8

Please sign in to comment.