We have created a custom item type for a dealer locator where you can fill in address information and the option to select a location on a map which returns the GeoLocation.
We are using the standard Geolocation field from DynamicWeb and in the code we are passing the address field names as parameter. But after we save the item type without selecting any location on the map, but with all address fields filled, the coordinates become 0.000000 0.000000. I'm expecting that the coordinates get filled with coordinates based on the address fields. I filled in the Google Maps API key in the settings. The DW version we are testing in is 9.8.9.
I added a code snippet of the Item Type fields and a screenshot of the fields in the backend.
[Group("Adress")]
[Name("Streetname")]
public string AddressStreet { get; set; }
[Group("Adress")]
[Name("Housenumber")]
public string AddressNumber { get; set; }
[Group("Adress")]
[Name("Zipcode")]
public string AddressZipcode { get; set; }
[Group("Adress")]
[Name("City")]
public string AddressCity { get; set; }
[Group("Adress")]
[Name("Country")]
public string AddressCountry { get; set; }
[Group("Adress")]
[Name("Geolocation")]
[Geolocation(AddressFields = "AddressStreet,AddressNumber,AddressZipcode,AddressCity,AddressCountry")]
public string AddressGeolocation { get; set; }