본문 바로가기
파이썬

파이썬 python display map with googlemaps

by º기록 2020. 11. 8.
반응형


예를 들면 :

gmaps = googlemaps.Client(key='Add Your Key here')

# Geocoding an address
geocode_result = gmaps.geocode('1600 Amphitheatre Parkway, Mountain View, CA')

# Look up an address with reverse geocoding
reverse_geocode_result = gmaps.reverse_geocode((40.714224, -73.961452))

# Request directions via public transit
now = datetime.now()
directions_result = gmaps.directions("Sydney Town Hall",
                                     "Parramatta, NSW",
                                     mode="transit",
                                     departure_time=now)

direction_result를 콘솔에 인쇄 할 수 있지만 그래픽 모드에서지도를 표시하는 방법을 모릅니다. 검색 결과를 파이썬에서지도로 표시하는 방법은 무엇입니까?

 

해결 방법

 

googlemaps 패키지는 데이터 / 응답 API 전용이기 때문입니다.



 

참조 페이지 https://stackoverflow.com/questions/35798126

 

 

반응형

댓글