portfolio/src/main/java/com/google/sps/servlets/MarkerServlet.java
private void storeMarker(Marker marker) {
    Entity markerEntity = new Entity(ENTITY_TITLE);
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_1, marker.getLat());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_2, marker.getLng());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_3, marker.getCrimeType());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_4, marker.getDate());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_5, marker.getTime());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_6, marker.getAddress());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_7, marker.getDescription());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_8, marker.getGridRow());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_9, marker.getGridCol());

    datastore.put(markerEntity);
  }
/** Stores a marker in Datastore. */
Stores a marker in Datastore.
Stores a marker in Datastore .
private void storeMarker(Marker marker) {
    Entity markerEntity = new Entity(ENTITY_TITLE);
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_1, marker.getLat());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_2, marker.getLng());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_3, marker.getCrimeType());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_4, marker.getDate());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_5, marker.getTime());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_6, marker.getAddress());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_7, marker.getDescription());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_8, marker.getGridRow());
    markerEntity.setProperty(ENTITY_PROPERTY_KEY_9, marker.getGridCol());
    datastore.put(markerEntity);
  }
private void storeMarker ( Marker marker ) { Entity markerEntity = new Entity ( ENTITY_TITLE ) ; markerEntity . setProperty ( ENTITY_PROPERTY_KEY_1 , marker . getLat ( ) ) ; markerEntity . setProperty ( ENTITY_PROPERTY_KEY_2 , marker . getLng ( ) ) ; markerEntity . setProperty ( ENTITY_PROPERTY_KEY_3 , marker . getCrimeType ( ) ) ; markerEntity . setProperty ( ENTITY_PROPERTY_KEY_4 , marker . getDate ( ) ) ; markerEntity . setProperty ( ENTITY_PROPERTY_KEY_5 , marker . getTime ( ) ) ; markerEntity . setProperty ( ENTITY_PROPERTY_KEY_6 , marker . getAddress ( ) ) ; markerEntity . setProperty ( ENTITY_PROPERTY_KEY_7 , marker . getDescription ( ) ) ; markerEntity . setProperty ( ENTITY_PROPERTY_KEY_8 , marker . getGridRow ( ) ) ; markerEntity . setProperty ( ENTITY_PROPERTY_KEY_9 , marker . getGridCol ( ) ) ; datastore . put ( markerEntity ) ; }
Stores a marker in Datastore.
Stores a marker in Datastore .