How can i use the restful api using c++ and libcurl?

thanks in advance, Kenji

asked 27 Jan '14, 01:19

Kenji%20Gabriel's gravatar image

Kenji Gabriel
-1334
accept rate: 0%

edited 27 Jan '14, 07:52

iii's gravatar image

iii
4.9k83981

2

which API (API might clarify) do you mean? What do you want to do? How is your question related to oauth (which you have added as tag)? And please focus on OpenStreetMap-related issues rather than general programming.

(27 Jan '14, 01:59) aseerel4c26 ♦

As written, this sounds more like a libcurl question than an OSM one. What are you actually trying to do? Other providers of map data may require you to access it through an API, but OSM allows you to just download it all, if that's what you want.

(27 Jan '14, 09:51) SomeoneElse ♦

AFAIK we don't have an ready to use lib to invoke our web APIs via C++ but call me wrong http://wiki.openstreetmap.org/wiki/Frameworks

If you just want to read data, you might consider using the OverpassAPI or dumps instead.

permanent link

answered 27 Jan '14, 07:51

iii's gravatar image

iii
4.9k83981
accept rate: 11%

One thing that you will absolutely have to do if you're calling an API at OpenStreetMap is to set a valid user agent. A number of applications have found themselves blocked recently because they didn't do that.

permanent link

answered 27 Jan '14, 09:49

SomeoneElse's gravatar image

SomeoneElse ♦
32.9k65341771
accept rate: 16%

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:

×243
×20
×8

question asked: 27 Jan '14, 01:19

question was seen: 4,398 times

last updated: 27 Jan '14, 09:51

powered by OSQA