Hello,
I started playing around with the Google Maps Data API using the Java
examples in the Google Maps Data API Java developer guide.
I am using the code verbatim replacing my user ID and Map ID where
appropriate. All the code snippets work except the two that involve
updating existing data namely:
Updating Maps
Updating Map Features
For both these two cases I receive the following.
com.google.gdata.util.NotImplementedException: Not Implemented
<HTML><HEAD>
<TITLE>Unsupported Request</TITLE>
</HEAD><BODY>
<H1>Unsupported Request</H1>
PUT to
http://maps.google.com/maps/feeds/maps/214290070838750383743/000475a60b2620571a057/full
not supported.<P>
Reference #8.58fe077.1255258841.4a2259d
</BODY></HTML>
at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse
(HttpGDataRequest.java:573)
at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse
(GoogleGDataRequest.java:543)
at com.google.gdata.client.http.HttpGDataRequest.checkResponse
(HttpGDataRequest.java:536)
at com.google.gdata.client.http.HttpGDataRequest.execute
(HttpGDataRequest.java:515)
at com.google.gdata.client.http.GoogleGDataRequest.execute
(GoogleGDataRequest.java:515)
at com.google.gdata.client.Service.update(Service.java:1482)
at com.google.gdata.client.Service.update(Service.java:1448)
at com.google.gdata.client.GoogleService.update(GoogleService.java:
583)
at com.fusion.vision.gdata.GetMapsFeed.updateMap(GetMapsFeed.java:
145)
at com.fusion.vision.gdata.GetMapsFeed.main(GetMapsFeed.java:33)
The code snippets that create/retrieve/delete maps and create/retrieve/
delete features works fine just the updates fail.
Here is the code I am using to attempt to update the Map Title as per
the code example in the dev guide:
public static MapEntry updateMap(MapsService myService)
throws ServiceException, IOException {
// Use the map entry's post (edit) URL
final URL editMapUrl = new URL("
http://maps.google.com/maps/feeds/
maps/214290070838750383743/full/000475a60b2620571a057");
// Create a MapEntry object and replace the title to 'Demo Map 2'
MapEntry myEntry = new MapEntry();
myEntry.setTitle(new PlainTextConstruct("Demo Map 2"));
return myService.update(editMapUrl, myEntry);
}
Any help would be much appreciated.