We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 424779d commit c004d82Copy full SHA for c004d82
src/utils.js
@@ -4,7 +4,7 @@ export const geocodeByAddress = (address, callback) => {
4
5
geocoder.geocode({ address }, (results, status) => {
6
if (status !== OK) {
7
- callback({ status }, null)
+ callback({ status }, null, null)
8
return
9
}
10
@@ -13,6 +13,8 @@ export const geocodeByAddress = (address, callback) => {
13
lng: results[0].geometry.location.lng(),
14
15
16
- callback(null, latLng)
+ const placeId = results[0].place_id;
17
+
18
+ callback(null, latLng, placeId)
19
})
20
0 commit comments