Closed Harin329 closed 5 years ago
@Harin329 can you provide more detail or the snapshot of what you did? Thanks,
This is the sample code. The GeoLocation is being added onto the JSON as so and when it's imported back onto cloud firestore, it is a map named "Location" with field 1 "_latitude" value 49.290683 and field 2 "_longitude" value -123.133956, rather than a proper geoPoint
{
"Canada": {
"Motomachi Shokudo": {
"Menu": {
"Appetizers": {
"Chicken Chashu Rice": {
"Raters": 1,
"Price": 6,
"Rating": 2.5
}
}
},
"Rating": 2.5,
"Website": "www.google.com",
"Location": {
"_latitude": 49.290683,
"_longitude": -123.133956
},
"Phone": "(604) 999-9999",
"NumRates": 1,
"Country": "Canada",
"City": "Vancouver"
}
}
}
Hi @Harin329, the script now supports GeoPoint fields. Please try it again.
The GeoPoint field is exported as a latitude and longitude, but when imported back into firestore, becomes a map with two numbers fields. Any fixes? Thanks in advance!