Hello,

I'm trying to access OSM through my application. Here is an example of a request I'm sending: http://pafciu17.dev.openstreetmap.org/?module=map&bbox=-111.97021484375,33.46292927417002,-111.82470703125,33.37333569698748&width=596.0&height=366.0&imgType=jpeg If you notice, the bounding box that is in the request is smaller than the image that is being returned. I'm not quite sure why this is happening? Is it a pixel issue? I'm trying to get away with using an api that does not require a zoom to be specified, that is why I went with the above api.

Thank you for any help, I appreciate any help

asked 01 Feb '13, 19:04

meburris's gravatar image

meburris
1111
accept rate: 0%


That would be this API, so be aware that your application is likely to get blocked if it places undue load on the servers as per the warning. From the links on that page it also looks like it is no longer maintained, and the images it produces seem to have an out of date attribution.

It might be worth following the recommendation on the Static Maps API page and trying staticMapLite instead?

permanent link

answered 01 Feb '13, 19:44

EdLoach's gravatar image

EdLoach ♦
18.1k14148263
accept rate: 23%

ok thank you, I will look into that. I was trying to get away with using an api that didn't require a "zoom" or "scale" parameter because we use Pixels per degree and I thought it would be difficult.

(01 Feb '13, 19:47) meburris
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×240

question asked: 01 Feb '13, 19:04

question was seen: 1,297 times

last updated: 01 Feb '13, 19:47

powered by OSQA