Static Map Service: flushicon

For any staticmap request with custom icons, the application caches every custom icon for a definite time period (60 mins). The flushicon service forces the release of custom icon from the application's cache, incase you want to refresh the icon within this time interval.

Usage :


Parameter Description Format Accepted Values Required?
uri The http uri of the icon to be flushed uri=URI URI: A valid HTTP URI without the http protocol Yes
key The key you received when you registered for service. If you have not registered for service, you will need to do so at the MapQuest Developer Network site. key=KEY KEY: A valid key string Yes

Example 'flushicon request :

In order to demonstrate 'flushicon', let us say that we generated a staticmap of Arthur Ashe Stadium with a tennis icon from the uri 'http://www.1millionicons.com/Icons/Sports/Tennis/htr.jpg'.

/staticmap/v3/getmap?size=400,400&scale=2500&center=40.74967,-73.847&xis=www.1millionicons.com/Icons/Sports/Tennis/htr.jpg,1,TR,40.74977,-73.847,0,0,120,120,&key=[YOUR_KEY_HERE]

Now, below 'flushicon' request will forcefully delete the icon from cache before the expiration of icon's time to live. Subsequent request for the icon will pull the latest image.

/staticmap/v3/flushicon?uri=www.1millionicons.com/Icons/Sports/Tennis/htr.jpg&key=[YOUR_KEY_HERE]

(Output will be displayed below)