title: Fetch OpenStreetMap image for specified latitude–longitude
body: <p>How can I <strong>use an OpenStreetMap service</strong> (an online server) to programmatically <strong>fetch a street map image</strong>, as a downloadable image file, <strong>from just a latitude–longitude value</strong> and zoom factor?</p>
  
  <p>My application has a set of latitude–longitude values, and for each one I need an OpenStreetMap diagram – an image, not a web page – showing the location with a pin on the street map. The image needs to be a single SVG or PNG for further offline processing.</p>
  
  <p>How can I programmatically construct a URL (at e.g. <a href="http://www.openstreetmap.org/" rel="nofollow">http://www.openstreetmap.org/</a> or <a href="http://www.opencyclemap.org/" rel="nofollow">http://www.opencyclemap.org/</a> or a similar service), parameterised by the latitude–longitude value and perhaps a zoom factor, that will return <em>just</em> the map image I'm interested in, including a pin at the location specified?</p>