Skip to content

Static Map API

Migration Guide

Basic Map

For this example, we want a 600px by 400px retina static map image of New York, NY with a zoom level manually set to 12.

migration basic map

Static Map

https://www.mapquestapi.com/staticmap/v5/map?key=KEY&center=New+York,NY&size=600,400@2x&zoom=12

Static Map v4

https://www.mapquestapi.com/staticmap/v5/getplacemap?key=KEY&location=New+York,NY&size=600,400&zoom=12

Google Static Maps API

https://maps.googleapis.com/maps/api/staticmap?center=New+York,NY&scale=2&size=600x400&zoom=12

Mapbox Static APIs

https://api.mapbox.com/styles/v1/mapbox/streets-v9/static/-74.0059,40.7128,12/600x400@2x?access_token=ACCESS_TOKEN
https://api.mapbox.com/v4/mapbox.streets/-74.0059,40.7128,12/600x400@2x.png?access_token=ACCESS_TOKEN

Here Map Image API

https://image.maps.cit.api.here.com/mia/1.6/mapview?app_id=APP_ID&app_code=APP_CODE&ci=New+York,NY&h=800&w=1200&ppi=250&z=12&f=0&nodot=true&style=alps

Bing Static Map API

https://dev.virtualearth.net/REST/V1/Imagery/Map/Road/New+York,NY?key=KEY&mapSize=600,400&format=png

Map with Locations

For this example, we want a 600px by 400px retina static map image of three cities in California that have numbered markers.

migration maps location

Static Map

https://www.mapquestapi.com/staticmap/v5/map?key=KEY&size=600,400@2x&locations=Los+Angeles,CA||San+Diego,CA||San+Jose,CA&defaultMarker=marker-num

Static Map v4

https://www.mapquestapi.com/staticmap/v5/getmap?key=KEY&size=600,400&pois=white_1-1,34.052238,-118.243344|white_1-2,32.71576,-117.163817|white_1-3,37.334807,-121.888128

Google Static Maps API

https://maps.googleapis.com/maps/api/staticmap?size=600x400&scale=2&key=KEY&markers=color:white|label:1|Los+Angeles,CA&markers=color:white|label:2|San+Diego,CA&markers=color:white|label:3|San+Jose,CA

Mapbox Static APIs

https://api.mapbox.com/styles/v1/mapbox/streets-v9/static/pin-s-1+ffffff(-118.243344,34.052238),pin-s-2+ffffff(-117.163817,32.71576),pin-s-3+ffffff(-121.888128,37.334807)/auto/600x400@2x?access_token=ACCESS_TOKEN

Map with Route

For this example, we want a 600px by 400px retina static map image of a route between Buffalo,NY and New York,NY.

migration map route

Static Map

https://www.mapquestapi.com/staticmap/v5/map?key=KEY&size=600,400@2x&start=Buffalo,NY&end=New+York,NY

Static Map v4

https://www.mapquestapi.com/staticmap/v5/getmap?key=KEY&size=600,400&shapeformat=cmp&shape=aowdG`cm`N`SxC??pAjA??}@fJ??`fB}kIar@__F??hfCiL??t_DqbUz}DyhGtYwuElkCev@??~RzI??bCE??yQmfr@pbEcsZoyAw_r@??}NcsG??lhJskDvcDcrG??tlPkhLveHwgKmM}vUbzDq}HhfKk_GheJivP??j{AigD`hF{hClnCgjNzhCkxDzzRc~KnvAu~HbwBylA{g@o|ErsGgbIyjGch]th@yfG`dIisBv{L}zK|u@mmL~dC{vFnEsrK??t@chC??sr@idLsyBkdCfQoiPa|I{sHcaCe}Hp{Bq`Fga@myH~lDu_Eo{Jg_^fnBsm\??tbDyxCjuI_pB`wBm~D~u[koLbzP`NvaK{mBh|BvwBjnI_xGngRnz@hfIptDjjHkjK??`n@a_A??`aHq_E??rlY%7B%7BKjmIqlM`kGivEr{Mi`B??bl@kmJ~iHe_EjpEouRqrBggItsLy{IxPk|y@fwEkyRacCkga@|cGe_Izb@q_H??~Z}fF??h`HibLjcBikJx|CglAftDyfOqVeqC??qV{y@??jy@}|F??dG_cA??@k_@??v@{@??Ao@??pgA{rG??jc@wuA??fAvC??`@aH??zPfB??dPnL??jGeQ??~EtD&scenter=42.8864,-78.8784&ecenter=40.7128,-74.0059

Google Static Maps API

https://maps.googleapis.com/maps/api/staticmap?size=600x400&scale=2&key=KEY&path=color:0x0000ff|weight:5|enc:qgwdGl_m`NdLrYbNoHzb@gzAbr@kdFir@mxCjUuaB~xB~FzUsb@dg@}bFtf@o|G|sA_|EheBm}Cvt@sl@fIiuA`^wmCx~Bqf@fVwm@Zym@cFkxGtIo}CgVoqEpAwoIuOy|GlQer@xA_qGhxAqqCvfA{|OrVsfKyCy`Cae@k[nNgtJoz@y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