반응형
예를 들면 :
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
반응형
'파이썬' 카테고리의 다른 글
파이썬 RuntimeError : 잘못된 DISPLAY 변수 (0) | 2020.11.08 |
---|---|
파이썬 Django REST Framework에서 CORS를 활성화하려면 어떻게해야합니까? (0) | 2020.11.08 |
파이썬 Django-makemigrations-감지 된 변경 사항 없음 (0) | 2020.11.07 |
파이썬 Python argparse에서 동일한 옵션을 여러 번 사용 (0) | 2020.11.07 |
파이썬 ImportError : 'google'이라는 모듈이 없습니다. (0) | 2020.11.07 |
댓글