NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Currently I convert the address to lat and lng in the backend (php) then plot the point with the code below.

var point = new MQA.Poi({ lat: result[i]['Lat'], lng: result[i]['Lng'] });
map.addShape(point);

How would I be able to plot the point with just an address rather than converting it myself.

asked 27 Aug '15, 00:41

MahoreLee's gravatar image

MahoreLee
26113
accept rate: 0%

closed 27 Aug '15, 22:13

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

1

Which library are you talking about?

(27 Aug '15, 07:36) scai ♦

Mapquest open API

(27 Aug '15, 15:38) MahoreLee

Didn't know which one to post the question on. So far no answers.

(27 Aug '15, 21:19) MahoreLee

@MahoreLee: please choose only one next time, that saves resources.

(27 Aug '15, 22:14) aseerel4c26 ♦

The question has been closed for the following reason ""I finally found the answer" at the forum entry" by aseerel4c26 27 Aug '15, 22:13


map.geocodeAndAddLocations('Denver CO');

permanent link

answered 27 Aug '15, 21:21

MahoreLee's gravatar image

MahoreLee
26113
accept rate: 0%

thank you!

(27 Aug '15, 22:15) aseerel4c26 ♦

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:

×113
×60
×28
×25
×5

question asked: 27 Aug '15, 00:41

question was seen: 3,308 times

last updated: 27 Aug '15, 22:15

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum